Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 97 - #Div/0! Error Message - how do I get rid of it?

Status
Not open for further replies.

dsmith910

Technical User
Joined
Jan 16, 2003
Messages
127
Location
GB
Hi

I've inherited a set of spreadsheets which run on Excel 97. On one of them I get the above error message where the cell formula is say =J5/J21*E62 and one of those cells is equal to '0'. Any idea how to get rid of the error message and replace it say with a '0'? At the moment the previous owner of this sheet entered 0.01 in the empty cell to remove the error message - but I kind of like things to add up properly!

Thanks

Doreen

PS I'm sure I saw the answer on the formum somewhere while I was browsing through the information on here - but I failed to keep a copy and now I can't find it. Sorry if you've already answered this for someone else!
 
Just test to see if the divisor is 0:
=if(J21=0,0,J5/J21*E62)

Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Hi Geoff

You've just made my day! .... again.

Thanks

Doreen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top