Conditional Sum of cells

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

Guest

I want to add cell C12 and C15 and B19 only if either C12 and C15 have a
number in them. Otherwise i want the cell left blank. How can i do this?

Thanks!

Eric
 
Do you mean:

If C12 *and* C15
If C12 *or* C15

Here's something for both:

*and*

=IF(COUNT(C12,C15)=2,SUM(C12,C15,C19),"")

*or*

=IF(COUNT(C12,C15)=1,SUM(C12,C15,C19),"")

Biff
 
Let's change that *or* formula to:

=IF(COUNT(C12,C15)>0,SUM(C12,C15,C19),"")

Biff
 

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