+ Reply to Thread
Results 1 to 3 of 3

summing groups of cells...

Hybrid View

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    2

    summing groups of cells...

    Dear all

    I have a question about summing groups of cells in the spreadsheet. Basically, I have the following data format:

    group | value
    1 | 2.0
    1| 2.1
    1 | 2.3
    1 | 1.1
    2 | 2.1
    2 | 3.1
    3 | 4.2
    3 | 2.3
    3 | 3.2
    4 | 5.1
    4 | 4.9
    4 | 3.1
    5 | 2.9
    5 | 1.8
    6 | 1.2
    6 | 2.1
    6 | 2.3

    and it goes on to thousands.
    I want to get the total of say, group 1-3; group 4-6, 7-9, etc

    the anticipated outcome would be

    reduced group | total
    A (which is 1-3) | x
    B (which is 4-6) | y
    C (which is 7-9) | z


    How can I do that?

    many thanks for your help!

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: summing groups of cells...

    Welcome to the forum.

    Here is a link for the SUMIF() function:
    http://www.excelfunctions.net/ExcelSumif.html

    and here is how you can use it to get the first group:
    =SUMIF(A:A,">=1",B:B)-SUMIF(A:A,">3",B:B)

    I'll let you try the other 2 groups using that method. If you have trouble with it let us know.

  3. #3
    Registered User
    Join Date
    05-25-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: summing groups of cells...

    thanks for the speedy reply! it is very useful!!!

+ 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