+ Reply to Thread
Results 1 to 8 of 8

Sum lines with duplicate values in Excel

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003, 2010
    Posts
    21

    Sum lines with duplicate values in Excel

    Hello,

    I understand there have been several posts related to the merging of rows but none specifically meet my needs.
    So here is my problem:
    i got datas on 3 columns, rows numbers are unknown (could be 0 or 180+).
    Take the column C as a name (or Code), for each code i want to sum Not OK and sum of Tot. checked.
    Once i got this i need to calculate for each code the formula " Sum Not OK" / " Sum of Tot.checked"
    After that, i have to put that in a order top 10.


    I added the file to the post.

    Any assistance would be much appreaciated, please let me know of any questions.

    Thank you.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Sum lines with duplicate values in Excel

    Hello,

    See if this helps.

    In F2 paste this formula and drag down

    Please Login or Register  to view this content.

    In G2 paste this formula and drag down

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003, 2010
    Posts
    21

    Re: Sum lines with duplicate values in Excel

    Yeah i know that but it's not working.sample2.JPG
    And moreover it's small part from the programme. So if anyone can show me how to do it in VBA. it will help me a lot.
    and the important part is ranking the results.

    Anyway thank you.

  4. #4
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Sum lines with duplicate values in Excel

    See if the attached file is inline with your need else post back here..
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003, 2010
    Posts
    21

    Re: Sum lines with duplicate values in Excel

    Thank you for the formula "filtering Unique Codes", I was blocked there.

    By the way, for ranking i used this:
    =SUMPRODUCT(--($H$2:$H$61<>""),--((H3<$H$2:$H$61)/COUNTIF($H$2:$H$61,$H$2:$H$61)))

    But, do you have any idea to get these formula into VBA programme? because it's part the whole prgm . so i like to know if there is any chance to put in VBA scripts?

    Thank you for help!

  6. #6
    Registered User
    Join Date
    07-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003, 2010
    Posts
    21

    Re: Sum lines with duplicate values in Excel

    Could you explain why i got "Name error" when i use the formula for "Filtering Unique Codes"??

  7. #7
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Sum lines with duplicate values in Excel

    Good to know it works for you to an extent. Unfortunately I have very limited knowledge in VBA

  8. #8
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Sum lines with duplicate values in Excel

    Not sure, why it shows Name error. Do you have double quotes for 0?

    or look out for any typo in the function name...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Removing Duplicate Lines.
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2013, 05:25 PM
  2. Identifying duplicate lines using multiple values
    By dantray in forum Excel General
    Replies: 8
    Last Post: 02-09-2012, 10:51 AM
  3. Duplicate lines with their content.
    By Ihateaccounting in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2008, 07:58 AM
  4. duplicate lines
    By davidan17 in forum Excel General
    Replies: 9
    Last Post: 01-01-2008, 08:03 PM
  5. Duplicate Lines
    By Mrbanner in forum Excel General
    Replies: 5
    Last Post: 11-11-2005, 12:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1