+ Reply to Thread
Results 1 to 5 of 5

sum corresponding number of duplicate ID

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2016
    Location
    Asia
    MS-Off Ver
    2010
    Posts
    18

    sum corresponding number of duplicate ID

    HI

    my question:
    if a1 and a2 are same in A then sum b1 and b2 in new work sheet and retain only one of a1 and a2.

    thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: sum corresponding number of duplicate ID

    To return the unique IDs

    =IFERROR(INDEX($A$2:$A$15,MATCH(0,INDEX(COUNTIF($I$1:$I1,$A$2:$A$15),0),0)),"")

    To return the totals:

    =IF(I2="","",SUMIF(A:A,I2,B:B))

    See sheet attached.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: sum corresponding number of duplicate ID

    Incidentally, I put the 2 formulae in i2 and J2, respectively, so that I could see your expected answer.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: sum corresponding number of duplicate ID

    Easiest way is to use a pivot table.

    See attachment for an example (with pivot solution in columns K:L)
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Registered User
    Join Date
    08-03-2016
    Location
    Asia
    MS-Off Ver
    2010
    Posts
    18

    Re: sum corresponding number of duplicate ID

    Thanks olly
    Thanks Glenn

+ 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. Duplicate Number Highlighting
    By scarlings in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2016, 04:26 PM
  2. Replies: 3
    Last Post: 12-16-2015, 12:56 AM
  3. Replies: 8
    Last Post: 06-25-2015, 08:59 AM
  4. Number Duplicate Values
    By ExcelFiend in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2014, 12:50 AM
  5. [SOLVED] Duplicate serial number
    By shimaa01234 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-12-2014, 05:20 AM
  6. Get numver number after validation of duplicate number
    By Nasir Choudhary in forum Excel General
    Replies: 1
    Last Post: 01-12-2013, 09:59 AM
  7. duplicate number
    By Daniell in forum Excel General
    Replies: 1
    Last Post: 03-16-2005, 03:06 PM

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