+ Reply to Thread
Results 1 to 8 of 8

Merging similar data and amounts

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    49

    Merging similar data and amounts

    I'm sure that this is very easy but I don't know where to start.

    Column A: List of document numbers
    Column B: List of amounts

    A B
    111 $5.00
    222 $10.00
    111 $5.00
    222 $15.00

    I need to merge all equal document numbers so that it shows the full amount on that document number. It needs look like this in the end:

    A B
    111 $10.00
    222 $25.00

    I realize a pivot table will do this but the formatting of a pivot table will not work with what I am ultimately trying to do.
    Last edited by erisaaka; 02-22-2013 at 05:23 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Merging similar data and amounts

    Pivot tables are best, howver you may use SUMIF on these lines

    =SUMIF(A:A,111,B:B)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Merging similar data and amounts

    Hmmmm...Yes, I see how that works. I unfortunately have a lot of document numbers. I can't possibly go through and type each one in.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Merging similar data and amounts

    Which is why pivot tables exist..

    www.cpearson.com/excel/pivots.htm

    You can always format the cells to do away with borders as well as not display grand totals for rows and columns. Have a play!

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Merging similar data and amounts

    A pivot table does this to my data:

    111
    $10.00

    222
    $25.00

    I need it to do this:

    111 $10.00
    222 $25.00

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Merging similar data and amounts

    Put the document number in the row label and the amount in values field...see attached
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-10-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Merging similar data and amounts

    Okay, I can see why you would be confused as to why I am confused. I was trying to illustrate it simply. I have more than two columns. I need it all to be in one line.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-10-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Merging similar data and amounts

    Got it! I used your formula but changed it too: SUMIF(A:A,A1,B:B) I dragged down from there.

    Thank you for helping me brainstorm this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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