+ Reply to Thread
Results 1 to 4 of 4

Combine rows by adding amounts found in column d for duplicate names in Column a

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    35

    Combine rows by adding amounts found in column d for duplicate names in Column a

    SampleDuplicates.xlsx

    I need to combine the rows that have the same names ex: Travis Taylor $8.51

    The numbers will be used in a vlookup on another accounting page. I also need to do the same thing with the accounting page but there are many more columns of data.

    Thanks for the help!

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Combine rows by adding amounts found in column d for duplicate names in Column a

    Hi bnasty,

    Couple of things to do first:
    1. convert D2:D15 to numbers (currently text with a hard return?!?)... quick way, highlight D2:D15, goto Data, Data Tools, Text to Columns, Delimited, Next, check Space and check Other: $, next, Do not import column (skip) for the first column, next, finish.
    2. get unique values of the names... quick way, copy column C to column F, then Data, Remove Duplicates

    After those 2, then in cell G2, you can use this formula... =SUMIF($C$2:$C$15,F2,$D$2:$D$15)

    Let me know if this doesn't work.

    Later,
    Dennis

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Combine rows by adding amounts found in column d for duplicate names in Column a

    SampleDuplicates2.xlsx

    Followed the steps, this is as far as I got.

    I was having the same problem of returning 0's when I tried. I thought it might be the text/hard return thing but I guess not. The reason the cells are formatted like that is because they're parsed from emails using a macros that works with outlook.

    What do you think?

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Combine rows by adding amounts found in column d for duplicate names in Column a

    Hi bnasty,

    You were close, but you "removed the duplicates" on the wrong column... if you want Column F as is, then change the formula to this...

    =SUMIF($B$2:$B$19,F2,$D$2:$D$19)

    Look up the logic on how SUMIF works...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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