Formula to result to $0 if no value entered

J

John Abernathy

I have a spreadsheet that contains a cell that is the sum
of two other values from two other cells. For example, in
cell A1, I have $100.00. In cell A2, I have 7.25%. In
cell A3 is A1*A2. I need a formula that, if there is no
value for cell A2, that A3 will return $0 instead of
#DIV/0 so that I can sum Cell A3 with the same formula
I'm using for cells A6, A7, A8.
 
P

Peo Sjoblom

You won't get that error with a multiplication. However if your formula
looked like

=A1/A2

then you could use

=IF(A2=0,0,A1/A2)
 
S

snauman

-----Original Message-----
I have a spreadsheet that contains a cell that is the sum
of two other values from two other cells. For example, in
cell A1, I have $100.00. In cell A2, I have 7.25%. In
cell A3 is A1*A2. I need a formula that, if there is no
value for cell A2, that A3 will return $0 instead of
#DIV/0 so that I can sum Cell A3 with the same formula
I'm using for cells A6, A7, A8.
.

Use:
=IF(A2=0,"0",A1*A2)
-the cell will then read out "0" instead of #DIV/0
Shelly
 

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