+ Reply to Thread
Results 1 to 5 of 5

Sum of numbers given criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    24

    Sum of numbers given criteria

    Hi, I hope someone can help me with this. I have the following data; in column A all the items and in column B the amount of the items

    Bread 1
    Butter 1
    Bread 3
    Milk 1
    Cheese 2
    Milk 2
    Bread 4
    Chocolate 2
    Coffee 1
    Bread 5

    I need a formula that automatically finds the total number of breads. So in this case
    Bread= 13

    Thanks for your help in advance. Really appreciate the people on this forum!

  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
    53,048

    Re: Sum of numbers given criteria

    use the =sumif() formula

    if you use the formula assistant, it will step you through it
    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
    04-23-2012
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Sum of numbers given criteria

    Thats it, thanks

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Sum of numbers given criteria

    in case you are interested in adding to your repertoire, try SUMPRODUCT, too. for your specific case:

    =sumproduct((a:a="bread")*(b:b))
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  5. #5
    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
    53,048

    Re: Sum of numbers given criteria

    glad to help, please mark this thread as closed and consider adding thanking those who helped you (see [2 and 3] below

+ 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