Creating a formula for two columns with Criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A B
1 10 20
2 10 0
3 10 -5
4 10 15
5 10 0

Alright say you have this as your data field. I know that using the SUMIF
function will give me the total of A if B > 0 (or whatever I set the criteria
to), BUT how can I get the sum of A AND B if B is greater than 0
 
I'd use something like:
=SUMIF(B:B,">"&0,A:A)+SUMIF(B:B,">"&0)
or
=SUMIF(B:B,">"&0,A:A)+SUMIF(B:B,">"&0,B:B)
 

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