+ Reply to Thread
Results 1 to 15 of 15

How to combine multiple dollar amounts by an id number that may appear multiple times?

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    How to combine multiple dollar amounts by an id number that may appear multiple times?

    Hi,

    I have amounts in a spreadsheet that I need to change from individual amounts broken out by id numbers to consolidated amounts per id number. (Tried to attach spreadsheet--not sure it worked. Hopefully example below is clear). Can someone give me the easiest way to change the info as simply and quickly as possible?

    *FROM Separate Amounts by EEID
    0001326 138.14
    0001473 95.46
    0001600 4,389.58
    0001600 2,194.92
    0001600 2,194.80
    0001692 719.87
    0001692 8,638.41
    0001692 2,159.65
    0001692 2,159.60
    0001996 4,162.20
    0001996 2,081.23
    0001996 2,081.14

    *TO Consolidated Amount by EEID
    0001326 138.14
    0001473 95.46
    0001600 8,779.30
    0001692 13,677.53
    0001996 8,324.57

    There are thousands of cells in the id number column, so I can't do it manually.

    Thank you!

    Antonia
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    If you already have the unique ID's...
    =SUMIF($B$2:$B$13,E2,$C$2:$C$13)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Create a list of the unique IDs.

    You can do this easily by using advanced filter...

    http://contextures.com/xladvfilter01.html#FilterUR

    Then, you can use a SUMIF function like this entered in F2 and copied down:

    =SUMIF(B:B,E2,C:C)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    to extract the unique IDs
    enter and array formula

    =IF(OR(INDEX($B$2:$B$100, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$100), 0))=0,ISERROR(INDEX($B$2:$B$100, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$100), 0)))),"",INDEX($B$2:$B$100, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$100), 0)))

    using control + Shift + Enter

    Change $I1:I$1 to the column you put the formula in

    and then use a SUMIF
    =SUMIF(B:B,I2,C:C)

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Wow! Thank you so much James for not only helping me with the list and the consolidating amounts but also attaching an example. You're the only one who did that. And, that's exactly what I need since I am terribly sleep deprived and under pressure to get this done. Unfortunately, I tried copying your formula to create the unique ID list, and it didn't work when I copied it down. I also changed the 100 to 13756, which is the row number of the cells in column B?

    I am sorry I am such a novice, but could you possible provide any more instruction? I am not sure what to do with the Control Shift Enter either. Thank you very much for your help.

    - Antonia

  6. #6
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Sorry--See how sleep deprived, not sure how I got James out of Wayne/Etaf. But I appreciate your help.

    - Antonia

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    is you sample using the exact same columns as your live data ?
    if not

    what column are the IDs in
    what column are the values you want to sum
    What column do you want to use for the extract of unique IDs ?
    What column do you want to put the Sum in

    when you enter the formula to extract the unique IDs
    instead of using enter or the tick to confirm the formula
    you need to use the Control Key + the shift key + the enter key - all at the same time

    then it puts {} around the formula and enters as an array


    This assumes you are extracting from column B
    this assumes the unique IDs are entered into column I
    So you enter this into cell I2 and copy down

    =IF(OR(INDEX($B$2:$B$13756, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$13756), 0))=0,ISERROR(INDEX($B$2:$B$13756, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$13756), 0)))),"",INDEX($B$2:$B$13756, MATCH(0, COUNTIF($I1:I$1, $B$2:$B$13756), 0)))

    if you wanted to use say column E to extract the IDs

    =IF(OR(INDEX($B$2:$B$13756, MATCH(0, COUNTIF($E1:E$1, $B$2:$B$13756), 0))=0,ISERROR(INDEX($B$2:$B$13756, MATCH(0, COUNTIF($E1:E$1, $B$2:$B$13756), 0)))),"",INDEX($B$2:$B$13756, MATCH(0, COUNTIF($E1:E$1, $B$2:$B$13756), 0)))

  8. #8
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Ok. The advanced filter thing worked after I copied the list to a new sheet. Then I used the sumif thing. You guys literally saved my life. Thank you!!!

  9. #9
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Ok. Looks like I spoke too soon. Looks like the advanced filter only pulled out the unique ids that had multiple ids associated with it. Or only some of them. Some of the unique ids didn't make it into the list. Help?!

  10. #10
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Ok. So it dawned on me. The time Wayne and Tony are trying to spend trying to help me manipulate the list. Seems so easy for them, maybe it is easier if I just attach the list and you send it back to me with the fix? I don't know if that violates some sort of excel forum rule. But, I would be so obliged if I just had the list consolidated the way it needs to be. Maybe Wayne, you'd be willing to help me out since you attached that other excel spreadsheet back to me. Thank you for anything and everything you are willing to help with. Now I gotta find the place to attach the spreadsheet.

    Antonia

  11. #11
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    Ok. So it dawned on me. The time Wayne and Tony are trying to spend trying to help me manipulate the list. Seems so easy for them, maybe it is easier if I just attach the list and you send it back to me with the fix? I don't know if that violates some sort of excel forum rule. But, I would be so obliged if I just had the list consolidated the way it needs to be. Maybe Wayne, you'd be willing to help me out since you attached that other excel spreadsheet back to me. Thank you for anything and everything you are willing to help with. Now I gotta find the place to attach the spreadsheet.

    Antonia
    Attached Files Attached Files

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    The advanced filter works OK on your sample file.

  13. #13
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    because of the size of the data - the array is going to do a lot of calculating

    A pivot table will work much better
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-13-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    absolute rock star. thank you!

  15. #15
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: How to combine multiple dollar amounts by an id number that may appear multiple times?

    you are welcome, thanks for a rep

+ 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] Find RMA Number and paste the order number and date multiple times
    By intex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2015, 05:31 PM
  2. Formula to make dollar amounts a round number for payments
    By C.j. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2015, 02:11 PM
  3. [SOLVED] creating total counts and dollar amounts based off a number inputed
    By Outlet Kings in forum Excel General
    Replies: 10
    Last Post: 06-19-2015, 04:19 PM
  4. Turning even Dollar Amounts to odd Dollar Amounts
    By Tim D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2015, 04:32 PM
  5. Replies: 1
    Last Post: 02-21-2014, 09:09 PM
  6. Replies: 3
    Last Post: 09-17-2012, 08:05 AM
  7. Replies: 4
    Last Post: 09-14-2011, 06:23 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