division formula

R

Rohit

when i try to divide 100 by 0, its gives me error message #DIV/0!. This i
undersatnd is immpossible. But can i setup a formula if any number being
divided by zero the outcome should be zero or n/a.
Thanks
 
T

T. Valko

One way:

A1 = 100
A2 = 0 (or empty cell which evaluates to 0)

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

FloMM2

Rohit,
Yes, it is possible. In the Cell that has the result as "#DIV/0!"
Type:
"=IF(ISERROR(C1/D1),0,(C1/D1))"
where 0 is zero or substitue "n/a"
hth
 

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

Similar Threads

formula for spreadsheet, avoiding zeros? 5
Formula help 3
macro - replace 2
Dividing by Zero in Access Reports 14
Formula 2
Simple Division 1
how to remove #DIV/0! 7
#DIV error 5

Top