Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

Replace with "O' if #Div/0I

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aasreds - 23 Jun 2005 21:39 GMT
I am setting up a spreadsheet to calculate some figures for me and woul
like to set up the last column to display the results.  Several of m
column are added together and the results then divided by a value (no
yet entered in the spreadsheet) resulting in the #Div/0! error.  How d
I get the column to display "0" for the Div/)! error
swatsp0p - 27 Jun 2005 16:36 GMT
Place an IF statement to trap the error and return a zero, as such:

=IF(ISERROR(yourformula),0,yourformula)

Now, when your formula returns an error, zero will be the result
displayed.

HTH

Bruce

Signature

swatsp0p

JE McGimpsey - 27 Jun 2005 17:20 GMT
This works, but as an alternative, if your value is in a particular cell
(say, J100), use

   =IF(J100=0, 0, SUM(A1:J99)/J100)

This is more efficient than calculating your formula twice, and has the
added benefit of not masking other errors the way ISERROR() does.

> Place an IF statement to trap the error and return a zero, as such:
>
> =IF(ISERROR(yourformula),0,yourformula)
>
> Now, when your formula returns an error, zero will be the result
> displayed.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.