+ Reply to Thread
Results 1 to 11 of 11

How can I SUM values only when specific text in another cell in the row is met?

  1. #1
    Registered User
    Join Date
    10-24-2008
    Location
    Redondo Beach
    Posts
    10

    How can I SUM values only when specific text in another cell in the row is met?

    Here's my dilemma...
    I'm creating 10 'categories' for Column "C" that I plan on using drop-downs to select from. Column "H" has a value tied to "C". What I want to do, is have Excel SUM all of the values in Column "H" where the Category in "C" is a specific text value (e.g. say a category is "hardware", I want a cell with a formula that sums all of the values in "H" where "C" is "hardware".)

    Any help from the experts would be greatly appreciated!
    Last edited by NBVC; 10-24-2008 at 01:57 PM.

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

    Please take the time to read our forum rules. You need to adjust your title to something more descriptive.


    Thank you and enjoy the forum.
    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
    10-24-2008
    Location
    Redondo Beach
    Posts
    10
    Quote Originally Posted by NBVC View Post
    Welcome to our forum,,

    Please take the time to read our forum rules. You need to adjust your title to something more descriptive.


    Thank you and enjoy the forum.
    Sure thing. My apologies.



    edit: I can't seem to find where I can edit the thread title.
    edit #2: nevermind, I see it in the forum rules :-X
    Last edited by SublimeLB; 10-24-2008 at 01:33 PM.

  4. #4
    Registered User
    Join Date
    10-24-2008
    Location
    Redondo Beach
    Posts
    10
    Ok, thread title edited, though I'm not sure my question made any sense.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by SublimeLB View Post
    Here's my dilemma...
    I'm creating 10 'categories' for Column "C" that I plan on using drop-downs to select from. Column "H" has a value tied to "C". What I want to do, is have Excel SUM all of the values in Column "H" where the Category in "C" is a specific text value (e.g. say a category is "hardware", I want a cell with a formula that sums all of the values in "H" where "C" is "hardware".)

    Any help from the experts would be greatly appreciated!
    The Sumif() function should be able to do this.

    Have a look at that function in Excel Help. If you need further assistance please do not hesitate to post back...

  6. #6
    Registered User
    Join Date
    10-24-2008
    Location
    Redondo Beach
    Posts
    10
    Quote Originally Posted by NBVC View Post
    The Sumif() function should be able to do this.

    Have a look at that function in Excel Help. If you need further assistance please do not hesitate to post back...
    I'll start there, thanks.

  7. #7
    Registered User
    Join Date
    10-24-2008
    Location
    Redondo Beach
    Posts
    10
    Oh man, that was a piece of cake, thanks... edit: Crap, except I just realized I need the average, not sum, and it appears my old Excel 2003 doesn't have AverageIf (2007 does). Any suggestions?

  8. #8
    Registered User
    Join Date
    10-24-2008
    Location
    Redondo Beach
    Posts
    10
    I tried =AVERAGE(IF(C2:C8="Hardware",H2:H8))

    That was pretty comical. Still no idea how to do this without using AverageIf

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    In 2003, there is no Averageif() function... the way you wrote it is the correct way to find the conditional Average.... but this is now an array formula and you must confirm it with CTRL+SHIFT+ENTER not just Enter. You will note{ } brackets appear around the formula.

  10. #10
    Registered User
    Join Date
    10-01-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How can I SUM values only when specific text in another cell in the row is met?

    I am trying to do the exact same thing but across different spreadsheets in the same workbook. I have 5 tabs:

    1Qtr, 2Qtr, 3Qtr, 4Qtr and FY11 Totals

    I want the sum to appear on the FY11 Totals spreadsheet. The number is always in column I and the text is always in column J. So the formula I am using is
    =SUMIF('1Qtr'!I3:'2Qtr'!I3:'3Qtr'!I3:'4Qtr'!I3,"text",'1Qtr'!J3:'2Qtr'!J3:'3Qtr'!J3:'4Qtr'!J3)

    Can someone please tell me what I am doing wrong?

    Thanks so much!
    Jena

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

    Re: How can I SUM values only when specific text in another cell in the row is met?

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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