Help summing only certain cells

  • Thread starter Thread starter Russ H
  • Start date Start date
R

Russ H

I am trying to sum certain cells based on the text in
another cell. Here's the example in cells A1:B4. Column
B is text.

A B
1 $2 Check
2 $3 Cash
3 $5 Cash
4 $2 Check

Check Total ??
Cash Total ??

Is there a formula that I can put in cells at the bottom
that will calculate the check total and the cash total?

Lately I've had this challenge twice and haven't figured
out a clean way to do it. Please help... Thanks!
 
=SUMPRODUCT(--(B1:B4="cash"),A1:A4)
=SUMPRODUCT(--(B1:B4="check"),A1:A4)
 
Hi Russ!

Use:
=SUMIF(B1:B4,"Check",A1:A4)
=SUMIF(B1:B4,"Cash",A1:A4)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top