#1   Report Post  
Cheri
 
Posts: n/a
Default Formula Error

When creating formulas, is there a way to avoid the #DIV/0! Error without
having to insert IF(C5<0,0) into each formula?


--
~ Cheri
  #2   Report Post  
Gordon
 
Posts: n/a
Default

Cheri wrote:
When creating formulas, is there a way to avoid the #DIV/0! Error
without having to insert IF(C5<0,0) into each formula?


Not really.


  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Cheri

In order to prevent the #DIV/0! you must trap the 0(or blank) somehow.

=IF(C5=0,"",B5/C5)

=IF(ISERROR(B5/C5),"",B5/C5)

Watch out when using ISERROR.......it will mask all errors, not just #DIV/0!

Gord Dibben Excel MVP


On Mon, 13 Dec 2004 07:21:06 -0800, "Cheri"
wrote:

When creating formulas, is there a way to avoid the #DIV/0! Error without
having to insert IF(C5<0,0) into each formula?


  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I would rather change the formula to check for possible errors first, but you
could use Format|conditional formatting.

And make the text color match the fill color (white on white). The error is
still there, but it looks ok.

=iserror(a1)

would be the formula I'd use for the Conditional formatting formula for A1.

===
I don't like to have hidden stuff like this. It sometimes makes it difficult to
see why the next formula returns an error. But it may be useful in this case.

Cheri wrote:

When creating formulas, is there a way to avoid the #DIV/0! Error without
having to insert IF(C5<0,0) into each formula?

--
~ Cheri


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Findlink Error D Moniz via OfficeKB.com Links and Linking in Excel 0 January 20th 05 04:53 PM
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM
How to set Error Bars to _two_ SDs? [email protected] Charts and Charting in Excel 1 December 7th 04 02:00 AM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 02:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"