+ Reply to Thread
Results 1 to 6 of 6

What formula to use to sum subtotals by next cell meaning

  1. #1
    Registered User
    Join Date
    07-30-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2002
    Posts
    8

    Question What formula to use to sum subtotals by next cell meaning

    I am sure there should be some formula in excel to use to get the result I want. I need a formula to look into one column and sum up totals from other column which have the same value in first column.

    Example of data:

    A 1000
    B 5
    A 300
    A 72
    B 41

    The result I need to get:

    A 1372
    B 46

    Meaning getting the totals of second column for the same value in the first column.

    I would highly appreciate your help and hints.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: What formula to use to sum subtotals by next cell meaning

    You can use SUMIF:
    =SUMIF(A:A,"A",B:B)
    and
    =SUMIF(A:A,"B",B:B)
    for example.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    07-30-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: What formula to use to sum subtotals by next cell meaning

    Thanks for the idea.

    Will it work in case there will be more values in first column than just A & B? Could be A, B, C, etc...

    I just gave a short example in order to make it simple to understand.
    Last edited by VCK; 07-30-2009 at 06:53 AM.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: What formula to use to sum subtotals by next cell meaning

    It will sum based on whatever criteria you specify. If you want to produce the whole summary, then use a pivot table and put the column A data into the row field area and the column B data into the data area. The will produce exactly what you want.

  5. #5
    Registered User
    Join Date
    07-30-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: What formula to use to sum subtotals by next cell meaning

    Trying with pivots now. Tried before but didn't work. Maybe this time more luck.

    Anyway, ideas about functions are also very welcome

  6. #6
    Registered User
    Join Date
    07-30-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: What formula to use to sum subtotals by next cell meaning

    Pivot worked for me.

+ 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