+ Reply to Thread
Results 1 to 6 of 6

SUM TOTALS IF CATEGORY equals to defined values

  1. #1
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    SUM TOTALS IF CATEGORY equals to defined values

    I'm not sure if the title is correct.

    I'd like to sum up all total Orders, Sales of Category A,B,c ...etc from the tables of data on the other excel tab.

    See attached sheet.
    Attached Files Attached Files
    Last edited by lemuel; 04-24-2012 at 11:53 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUM TOTALS IF CATEGORY equals to defined values

    B2:
    =SUMIF(All!$A$2:$A$7,$A2,All!C$2:C$7)

    copy to B2:C4
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: SUM TOTALS IF CATEGORY equals to defined values

    Quote Originally Posted by Richard Buttrey View Post
    B2:
    =SUMIF(All!$A$2:$A$7,$A2,All!C$2:C$7)

    copy to B2:C4
    thanks for the solution but when copying the formula to the next row, A$2:A$7 becomes A$3:A$8 and so on... Is there any way to make it fixed or constant value? I have a lot of rows and columns on my actual sheet so editting the formula each cell in a tedious process.

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

    Re: SUM TOTALS IF CATEGORY equals to defined values

    Copying (or dragging) A$2:A$7 down will not become A$3:A$8. It will remain as A$2:A$7. That's what the $ signs are for.
    Copying A2:A7 down will become A3:A8.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUM TOTALS IF CATEGORY equals to defined values

    Hi,

    I don't understand your comment.

    Copying A$2:A$7 down can't possibly become A$3:A$8. The $ signs make the rows absolute - i.e. fixed.

    If you've manually entered the formula I gave you and are getting the result you say then you have made a mistake in typing.

    Regards

  6. #6
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: SUM TOTALS IF CATEGORY equals to defined values

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    I don't understand your comment.

    Copying A$2:A$7 down can't possibly become A$3:A$8. The $ signs make the rows absolute - i.e. fixed.

    If you've manually entered the formula I gave you and are getting the result you say then you have made a mistake in typing.

    Regards
    Got it. I mistype the formula. Everything is ok now. Thanks everyone. This is SOLVED.

+ 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