#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Error Terms

How can I get an error term, such as #DIV/0!, to display as just a zero? Thanks
--
Michael Gudyka
St. Charles, IL
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Error Terms

One way:

Instead of

=A1/B1

use

=IF(B1=0,0,A1/B1)

In article ,
Michael Gudyka wrote:

How can I get an error term, such as #DIV/0!, to display as just a zero?
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Error Terms

=if(iserror(yourformula),0,yourformula)



Michael Gudyka wrote:

How can I get an error term, such as #DIV/0!, to display as just a zero? Thanks
--
Michael Gudyka
St. Charles, IL


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Error Terms

I really discourage using iserror - it ignores too many "unexpected"
errors (displaying a valid, but incorrect value - hmmm...where have we
heard about *that* lately??).

And since it calls fewer functions, this is actually more efficient:

=IF(yourdenominator=0, 0, yourformula)

In article ,
Dave Peterson wrote:

=if(iserror(yourformula),0,yourformula)



Michael Gudyka wrote:

How can I get an error term, such as #DIV/0!, to display as just a zero?
Thanks
--
Michael Gudyka
St. Charles, IL

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Error Terms

On the other hand, =iserror() does help if either the numerator or denominator
cells contain text.

And personally, I think returning a 0 when the divisor is 0 is just another way
to hide an error (expected or unexpected).

==
I wasn't trying to sound too argumentative. I understand your point.

JE McGimpsey wrote:

I really discourage using iserror - it ignores too many "unexpected"
errors (displaying a valid, but incorrect value - hmmm...where have we
heard about *that* lately??).

And since it calls fewer functions, this is actually more efficient:

=IF(yourdenominator=0, 0, yourformula)

In article ,
Dave Peterson wrote:

=if(iserror(yourformula),0,yourformula)



Michael Gudyka wrote:

How can I get an error term, such as #DIV/0!, to display as just a zero?
Thanks
--
Michael Gudyka
St. Charles, IL


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Error Terms

And just to add, I've found that my co-workers were much more interested in the
"prettiness" of the worksheet than the accuracy. <gd&r



Dave Peterson wrote:

On the other hand, =iserror() does help if either the numerator or denominator
cells contain text.

And personally, I think returning a 0 when the divisor is 0 is just another way
to hide an error (expected or unexpected).

==
I wasn't trying to sound too argumentative. I understand your point.

JE McGimpsey wrote:

I really discourage using iserror - it ignores too many "unexpected"
errors (displaying a valid, but incorrect value - hmmm...where have we
heard about *that* lately??).

And since it calls fewer functions, this is actually more efficient:

=IF(yourdenominator=0, 0, yourformula)

In article ,
Dave Peterson wrote:

=if(iserror(yourformula),0,yourformula)



Michael Gudyka wrote:

How can I get an error term, such as #DIV/0!, to display as just a zero?
Thanks
--
Michael Gudyka
St. Charles, IL


--

Dave Peterson


--

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
Invoice due; Payment terms Joe Excel Discussion (Misc queries) 5 August 14th 07 10:39 AM
how do i look up terms in excel? Joshua Howard Excel Discussion (Misc queries) 2 October 26th 06 04:37 PM
Terms customer is using-What do they mean? Jugglertwo Excel Discussion (Misc queries) 3 April 27th 06 05:48 PM
Calculate terms in a Series BarbV Excel Worksheet Functions 5 October 4th 05 03:04 AM
Please Explain in Lamen's Terms Karen Excel Worksheet Functions 2 June 16th 05 08:52 PM


All times are GMT +1. The time now is 01:27 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"