#1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default #DIV/0!

I know #DIV/0! is a common error but I can't seem to make my formula work
with the ISERROR statement.

My formula is returning a 0/0 value

=IF(I26,(G26+H26))/(I26-F26)


What am I doing wrong in this error correction statement

=IF(ISERROR(I26,(G26+H26))/(I26-F26)),0,(I26,(G26+H26))/(I26-F26))


It keeps telling me I entered too many arguments for this function. What am
I doing wrong ... or is there another way to do this ?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default #DIV/0!

Well first off your formula is a little messed up... you are asking it

If I26 then do this formula.

What are you trying to do here, the first part of the if statement should be
your equation. So it should look like this, if this is actually what you want
to do

If(Iserror((G26+H26)/(I26-F26)),I26,(G26+H26)/(I26-F26))

"Ken" wrote:

I know #DIV/0! is a common error but I can't seem to make my formula work
with the ISERROR statement.

My formula is returning a 0/0 value

=IF(I26,(G26+H26))/(I26-F26)


What am I doing wrong in this error correction statement

=IF(ISERROR(I26,(G26+H26))/(I26-F26)),0,(I26,(G26+H26))/(I26-F26))


It keeps telling me I entered too many arguments for this function. What am
I doing wrong ... or is there another way to do this ?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default #DIV/0!

You only need to test for divide by zero so just test

=IF(I26-F26=0,0,your formula)

btw your formula looks a bit strange

although you can use

=IF(cell,do this,do that)

it is not the normal way to handle if functions

Anyway it is really not necessary to use iserror since you can test for zero
instead
and iserror would hide if you have another error in one of the cells

--


Regards,


Peo Sjoblom

"Ken" wrote in message
...
I know #DIV/0! is a common error but I can't seem to make my formula work
with the ISERROR statement.

My formula is returning a 0/0 value

=IF(I26,(G26+H26))/(I26-F26)


What am I doing wrong in this error correction statement

=IF(ISERROR(I26,(G26+H26))/(I26-F26)),0,(I26,(G26+H26))/(I26-F26))


It keeps telling me I entered too many arguments for this function. What
am
I doing wrong ... or is there another way to do this ?



  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default #DIV/0!

Thanks! That worked.

I knew I was doing something goofy...just needed a little push or maybe slap
in this case.

Thanks again.

"akphidelt" wrote:

Well first off your formula is a little messed up... you are asking it

If I26 then do this formula.

What are you trying to do here, the first part of the if statement should be
your equation. So it should look like this, if this is actually what you want
to do

If(Iserror((G26+H26)/(I26-F26)),I26,(G26+H26)/(I26-F26))

"Ken" wrote:

I know #DIV/0! is a common error but I can't seem to make my formula work
with the ISERROR statement.

My formula is returning a 0/0 value

=IF(I26,(G26+H26))/(I26-F26)


What am I doing wrong in this error correction statement

=IF(ISERROR(I26,(G26+H26))/(I26-F26)),0,(I26,(G26+H26))/(I26-F26))


It keeps telling me I entered too many arguments for this function. What am
I doing wrong ... or is there another way to do this ?

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



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