Devide value by 0 or ""

S

Syd

How can I get a formula to show me the valid value in one
cell if the other cell contains a zero. Example: Cell A1 =
26, cell A2 = 0 or "".

Now to devide cell A1 by A2 will generate a #Div/0! error
in cell A3 =(A1/A2). I'd like to see the value of cell A1
which is 26 in cell A3 and not the ugly #Div/0! error.

Any ideas?
 
P

Paul B

Syd, here is one way =IF(ISERROR((A1/A2)),A1,(A1/A2))
--
Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
 

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