Blank Cells

S

Shapper

Hello,

I am trying to do the following:

1 - In Cell A4 display the SUM of A1 + A2 + A3 if at least one of these cells is not empty.

2 - In Cell A6 display A5-A4 if both cells are not empty.

How can I do this?

Thank You,
Miguel
 
P

prestonplace

Hello,

I am trying to do the following:

1 - In Cell A4 display the SUM of A1 + A2 + A3 if at least one of these cells is not empty.

2 - In Cell A6 display A5-A4 if both cells are not empty.

How can I do this?

Thank You,
Miguel

Hi Miguel,

Probably a couple of ways those formulas could be written, but here is
how I would approach them:

Cell A4 =IF(OR(A1<>"",A2<>"",A3<>""),SUM(A1:A3),"")
Cell A6 =IF(AND(A4<>"",A5<>""),SUM(A4:A5),"")

Hopefully that helps.
Charles
 
J

joeu2004

Shapper said:
I am trying to do the following:
1 - In Cell A4 display the SUM of A1 + A2 + A3 if at
least one of these cells is not empty.
=IF(COUNT(A1:A3)>0,SUM(A1:A3),"")

2 - In Cell A6 display A5-A4 if both cells are not empty.

=IF(COUNT(A4:A5)=2,A5-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

Top