ISBLANK in an IF statement

B

Becky

How do I write this IF statement/formula in cell A3:

cell A1 has a number in it.
cell A2 is blank, but will eventually have a number in it.
cell A3 is blank, but will display the sum of A1+A2 AFTER
there is an entry made in A2. I want A3 to remain blank
until there is an entry made in A2.

Whenever I try to use =isblank in my IF formula, the
result comes back as "invalid". I've tried everything.

Is what I'm asking for possible? Thanks!!
 
P

Paul

Becky said:
How do I write this IF statement/formula in cell A3:

cell A1 has a number in it.
cell A2 is blank, but will eventually have a number in it.
cell A3 is blank, but will display the sum of A1+A2 AFTER
there is an entry made in A2. I want A3 to remain blank
until there is an entry made in A2.

Whenever I try to use =isblank in my IF formula, the
result comes back as "invalid". I've tried everything.

Is what I'm asking for possible? Thanks!!

Either
=IF(ISBLANK(A2),"",A1+A2)
or
=IF(A2="","",A1+A2)
 
D

Dave R.

I think you may be putting hte isblank in the wrong spot, try

if(isblank(a2),"",a1+a2)
 
H

Harlan Grove

...
...
cell A1 has a number in it.
cell A2 is blank, but will eventually have a number in it.
cell A3 is blank, but will display the sum of A1+A2 AFTER
there is an entry made in A2. I want A3 to remain blank
until there is an entry made in A2.
...

Even though A1 may have a number in it, in the off chance it doesn't but A2 does
contain a number, would you still want the sum? If not, then another alternative
would be

=IF(COUNT(A1:A2)=2,A1+A2,"")
 

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