+ Reply to Thread
Results 1 to 5 of 5

Creating a total (sum) of items matching a text value

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    North Alabama
    MS-Off Ver
    Excel 2003
    Posts
    3

    Creating a total (sum) of items matching a text value

    New to the forum and my first post. I am trying to create a total of hours in a cell based on the range of values (in this case categories) in a column (example attached). Obviously I am very rusty when it comes to Excel formulas. It would be really nice if I could figure out a way for excel to know that a new category has been added and sum those as well. Any help from you experts will be much appreciated.
    Attached Files Attached Files
    Last edited by NBVC; 03-16-2012 at 11:18 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Creating a total (sum) of items matching a text value

    Try:

    =SUMIF($B$2:$B$8,RIGHT(A11,2),$E$2:$E$8)

    copied down

    You can convert your list in A10:A13 to Tables so that when you add a new category, the formula copies down.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    North Alabama
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Creating a total (sum) of items matching a text value

    Thanks for the reply NBVC! That gets me part of the way there. However, it doesn't address when I have more than on row that has the same category entered. In this example, I need it to calculate the total of all the hours associated with each category. A specific example would be to add up all the category 1 hours in the top table. Thanks again.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Creating a total (sum) of items matching a text value

    I don't understand, if in A11 you enter "Category 1" using my formula in B11, don't you get 90? Which is the sum of 30+20+40 (i.e. all the Category 1 entries).

  5. #5
    Registered User
    Join Date
    03-14-2012
    Location
    North Alabama
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Creating a total (sum) of items matching a text value

    Yes indeed! My bad. It's been one of those mornings. Thank you soooo much!

+ 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