+ Reply to Thread
Results 1 to 4 of 4

adding a cell to a total if the cell value next to it is of a specific type

  1. #1
    Registered User
    Join Date
    04-29-2004
    Posts
    92

    Cool adding a cell to a total if the cell value next to it is of a specific type

    Well..Im not really sure how to search for that so i figured I'd ask. Its been a long time since ive used excel and know theres a way to do it but cant rember for the life of me how.

    Basically I have a sheet like this
    Please Login or Register  to view this content.
    I need a way to see if the cell value in row a is cheese. If it is cheese then it sums row b for every cheese in row a. in this case it would be b1+b3+b5. Because cheese is in a1, a3 and a5 Thanks for any help.. Or point me in the right direction!
    Chris

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    Either of these functions should do the trick for you.

    =SUMPRODUCT(--(A1:A7="cheese"),B1:B7)

    =SUMIF(A1:A7,"cheese",B1:B7)

    Hope that helps.

  3. #3
    Registered User
    Join Date
    04-29-2004
    Posts
    92
    Awesom!! Thanks for the quick reply.. That was it

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    No problem, thanks for the feedback.

+ 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