+ Reply to Thread
Results 1 to 4 of 4

If two rows have the same text in column A, can I sum the numbers in their column B?

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    Brunswick, ME
    MS-Off Ver
    Excel 2007
    Posts
    10

    If two rows have the same text in column A, can I sum the numbers in their column B?

    Easiest to just illustrate what I'm trying to do:

    Please Login or Register  to view this content.
    So, For rows where the text in column A is identical,
    step 1 - sum up the their respective column B values
    step 2 - write a single row with the text in column A, and the sum in column B.
    All duplicate rows are deleted.

    Any fast way to do this? I know about SUMIF but it's too many entries to do with multiple sumif's.

  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,939

    Re: If two rows have the same text in column A, can I sum the numbers in their column B?

    To get all unique entries, use advanced filters

    as far as summig the data, try using sumif() =sumif(A:A,C1,B:B) assuming you extracted the unique entries to column C
    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
    Registered User
    Join Date
    09-30-2011
    Location
    Brunswick, ME
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: If two rows have the same text in column A, can I sum the numbers in their column B?

    Nice FDibbins, it took a minute for me to figure out but once I did, it worked like a charm. Thanks very much.

  4. #4
    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,939

    Re: If two rows have the same text in column A, can I sum the numbers in their column B?

    Happy to help and thanks for the feedback

+ 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