+ Reply to Thread
Results 1 to 9 of 9

Summation of Categories.

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    7

    Summation of Categories.

    Hello and pre-thanks for any help.

    I'm using google docs spreadsheet to track my expenses and I'm also trying to use a pie chart to make things more visible. Let's say I have this going on:

    Type Cost
    Breakfast $10
    Lunch $20
    Breakfast $5
    Dinner $6
    Dinner $7
    Lunch $8

    I want to group the expenses in a separate column so I can see how much "Breakfast", "Lunch" and "Dinner" are. I tried: "SUMIF(A1:A50, "Breakfast", "B1:B50") but that only includes the Breakfast on the first row. How can I include ALL breakfast?

    Thanks again.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Summation of Categories.

    Hi there,

    Try using:


    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Summation of Categories.

    Quote Originally Posted by Greg M View Post
    Hi there,

    Try using:


    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Hi Greg,

    Thanks for your reply.

    I tried that and the same issue still comes up. It only recognizes the first "Breakfast" while the other "Breakfast" in the other rows don't add to the tally of "Breakfast."

  4. #4
    Registered User
    Join Date
    04-08-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Summation of Categories.

    Hmm seems like it works if I just click the actual cell and it sorts it all out. Thanks for the help!

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Summation of Categories.

    Hi again,

    The attached workbook contains the value "Breakfast" in Cells A1:A50, and the value 1 in Cells B1:B50.

    The formula:

    Please Login or Register  to view this content.
    is entered in Cell C1 and returns a value of 50.

    Does copying your values into the attached workbook help at all?

    Regards,

    Greg M


    P. S. Regarding your last post - is Calculation set to Manual instead of Automatic?
    Attached Files Attached Files

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Summation of Categories.

    Could be that there is some unseen whitespace character(s) in some of the "breakfast cells".

    Breakfast_
    _Breakfast
    _Breakfast_

    The underscores represent the unseen characters.

    If your data is in the range A1:A50 what result do you get with this formula:

    =COUNTIF(A1:A50,"Breakfast")

    Does it return the correct count?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    04-08-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Summation of Categories.

    Looks like everything works. Thanks to you both. It was probably because I had some underscores or something.

    PS Greg. Not sure what you mean by "manual" or automatic.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Summation of Categories.

    Quote Originally Posted by INEEDHELPGUY View Post
    Not sure what you mean by "manual" or automatic.
    In Excel 2007...

    Goto the Formulas tab>Calculation options

    Is Automatic checked?

    If not, then check it!

  9. #9
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Summation of Categories.

    Hi again,

    Many thanks for your feedback - glad I was able to help.

    See Tony's reply to your question about Manual or Automatic Calculation.

    Best regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Summation of multiple values of same categories
    By siravac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2014, 03:26 AM
  2. Replies: 1
    Last Post: 05-15-2013, 06:55 AM
  3. Replies: 0
    Last Post: 07-22-2011, 03:51 PM
  4. Replies: 2
    Last Post: 04-21-2011, 05:11 AM
  5. Grouping categories within categories
    By mju4t in forum Excel General
    Replies: 1
    Last Post: 11-03-2010, 02:41 PM
  6. Summation
    By dparnes1 in forum Excel General
    Replies: 3
    Last Post: 01-08-2010, 11:04 AM
  7. Categories and Sub-Categories in Column Charts
    By theoneness in forum Excel General
    Replies: 2
    Last Post: 11-28-2009, 10:05 PM

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