Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Using ISERROR to Solve #DIV/0 in a formula

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Using ISERROR to Solve #DIV/0 in a formula

You have a few alternatives:

=IF(G43+C43=0,0,if(iserror(G43/C43),"some message",G43/c43)

=IF(G43+C43=0,0,if(C43=0,"some message",G43/c43)

=IF(OR(G43+C43=0,C43=0),0,G43/C43)

"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Using ISERROR to Solve #DIV/0 in a formula

Try this:

=IF(OR(G43+C43=0,C43=0),0,(G43/C43))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Leigh Douglass" <Leigh wrote in message
...
Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0
message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Using ISERROR to Solve #DIV/0 in a formula

If you want to use ISERROR you can use
=IF(G43+C43=0,0,IF(ISERROR(G43/C43),"error",G43/C43))
but that may get confused with other sorts of error.
If you are merely trying to cope with the divide by zero, then perhaps
better to use
=IF(G43+C43=0,0,IF(C43=0,"divide error",G43/C43))
--
David Biddulph

"Leigh Douglass" <Leigh wrote in message
...
Hi

Apologies if i am repeating someone elses question, but can someone help
me
enter the ISERROR function into this formula to get rid of the #DIV/0
message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Using ISERROR to Solve #DIV/0 in a formula

=IF(C43=0,0,G43/C43)



"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Using ISERROR to Solve #DIV/0 in a formula

Excel 2003: =IF(G43+C43=0,0,IF(C43=0,0,G43/C43))
Excel 2007: =IFERROR(IF(G43+C43=0,0,(G43/C43)),0)

"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Using ISERROR to Solve #DIV/0 in a formula

Toppers, you don't provide for C34= 1 and G34= -1
1 + (-1) =0
1 / (-1) = (-1)

"Toppers" wrote:

=IF(C43=0,0,G43/C43)



"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Using ISERROR to Solve #DIV/0 in a formula

The "G43+C43" test is totally redundant. If C43 is zero, then G43 must be
zero and vice versa.

"Toppers" wrote:

=IF(C43=0,0,G43/C43)



"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Using ISERROR to Solve #DIV/0 in a formula

Duke

You are a life saver. Thanks very much.

"Duke Carey" wrote:

You have a few alternatives:

=IF(G43+C43=0,0,if(iserror(G43/C43),"some message",G43/c43)

=IF(G43+C43=0,0,if(C43=0,"some message",G43/c43)

=IF(OR(G43+C43=0,C43=0),0,G43/C43)

"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Using ISERROR to Solve #DIV/0 in a formula

Got me!!! OK!

"Tevuna" wrote:

Toppers, you don't provide for C34= 1 and G34= -1
1 + (-1) =0
1 / (-1) = (-1)

"Toppers" wrote:

=IF(C43=0,0,G43/C43)



"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Using ISERROR to Solve #DIV/0 in a formula

Yeah, but the fellow wants a zero even when C43 is not zero; in cased where
C43 and G43 cancel each other by opposite signs.

"Toppers" wrote:

The "G43+C43" test is totally redundant. If C43 is zero, then G43 must be
zero and vice versa.

"Toppers" wrote:

=IF(C43=0,0,G43/C43)



"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Using ISERROR to Solve #DIV/0 in a formula

"Toppers" wrote...
=IF(C43=0,0,G43/C43)

....

Or avoid all function calls.

=(C43<0)*G42/(C43+(C43=0))

Not recommended, just FTHOI.


  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Using ISERROR to Solve #DIV/0 in a formula

maybe
=if(or(c43=0,C43+G43=0),0,g4/c43)

"Leigh Douglass" wrote:

Hi

Apologies if i am repeating someone elses question, but can someone help me
enter the ISERROR function into this formula to get rid of the #DIV/0 message?

=IF(G43+C43=0,0,(G43/C43))

Basically cell C43 is a zero, so when the formula calculates the last
section I am getting the #DIV/0 error. Can I add the ISERROR function to
display a '0' instead or anything else for that matter?

Thanks in advance for your help.

  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Using ISERROR to Solve #DIV/0 in a formula

"bj" wrote...
maybe
=if(or(c43=0,C43+G43=0),0,g4/c43)

....

The OP was confused when giving C43+G43=0 in the origin example formula.
That formula didn't come close to matching the prose specs. There's no need
to check C43+G43=0 unless the OP doesn't want instances of C43 < 0 and C43
= -G43 to result in 0 rather than -1. Off the top of my head, I can't think
of any reason why the OP would want 0 as result instead of -1 but would want
other negative ratios when C43 is nonzero and has the opposite sign of G43.


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
How to use Excel to solve inequality formula? [email protected] Excel Discussion (Misc queries) 3 August 8th 07 04:51 AM
formula to solve Ben Excel Discussion (Misc queries) 2 August 8th 07 12:01 AM
Formula to solve Sunnyskies Excel Discussion (Misc queries) 3 February 19th 07 04:36 PM
Int Iserror Len Mid Find formula Aaron Excel Worksheet Functions 1 October 17th 06 05:56 AM
simple average formula...can you solve it in principle? krasavchik Excel Discussion (Misc queries) 2 April 25th 06 06:48 PM


All times are GMT +1. The time now is 07:38 AM.

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"