Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Incorrect Formual

I am trying to add this formula in a cell to get rid of a div/0 error but it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Incorrect Formual

Try one more IF
=IF(L4=0,0,IF(L20=0,0,if(l4=0,if( l20=0,0,(L4-L20)/L4),(L4-L20/L4))))


"Nigel" wrote:

I am trying to add this formula in a cell to get rid of a div/0 error but it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Incorrect Formual

I did some investigation and maybe found a better way

=IF(ISERROR(IF(L4-L201,L4-L20,IF(L4-L20<-1,L4-L20,""))),"",IF(L4-L201,L4-L20,IF(L4-L20<-1,L4-L20,"")))


"Vacation's Over" wrote:

Try one more IF
=IF(L4=0,0,IF(L20=0,0,if(l4=0,if( l20=0,0,(L4-L20)/L4),(L4-L20/L4))))


"Nigel" wrote:

I am trying to add this formula in a cell to get rid of a div/0 error but it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Incorrect Formual

=if(L4<0,(L4-L20)/L4,0)

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
I am trying to add this formula in a cell to get rid of a div/0 error but

it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Incorrect Formual

Tom,

I frequently use:
=If(L4,(L4-L20)/L4,0)

Is this just another alternative, or am I asking for trouble...

Thanks...

--
steveB

Remove "AYN" from email to respond
"Tom Ogilvy" wrote in message
...
=if(L4<0,(L4-L20)/L4,0)

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
I am trying to add this formula in a cell to get rid of a div/0 error but

it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Incorrect Formual

six of one, half dozen of another. If someone else has to use the sheet,
mine method is clearer in my opinion (but every one has one).

--
Regards,
Tom Ogilvy

"STEVE BELL" wrote in message
news:d_LIe.24$vD.18@trnddc05...
Tom,

I frequently use:
=If(L4,(L4-L20)/L4,0)

Is this just another alternative, or am I asking for trouble...

Thanks...

--
steveB

Remove "AYN" from email to respond
"Tom Ogilvy" wrote in message
...
=if(L4<0,(L4-L20)/L4,0)

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
I am trying to add this formula in a cell to get rid of a div/0 error

but
it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway to
easily get rid of div/0 error

thanks







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Incorrect Formual

Tom,

Thanks!

Just wanted to make sure I wasn't setting myself up...

--
steveB

Remove "AYN" from email to respond
"Tom Ogilvy" wrote in message
...
six of one, half dozen of another. If someone else has to use the sheet,
mine method is clearer in my opinion (but every one has one).

--
Regards,
Tom Ogilvy

"STEVE BELL" wrote in message
news:d_LIe.24$vD.18@trnddc05...
Tom,

I frequently use:
=If(L4,(L4-L20)/L4,0)

Is this just another alternative, or am I asking for trouble...

Thanks...

--
steveB

Remove "AYN" from email to respond
"Tom Ogilvy" wrote in message
...
=if(L4<0,(L4-L20)/L4,0)

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
I am trying to add this formula in a cell to get rid of a div/0 error

but
it
won't let me add it

=IF(L4=0,0,IF(L20=0,0,if(l4=0 and l20=0,0,(L4-L20)/L4)))

it doesn't like the statement if(l4=0 and l20=0,0 is there anyway
to
easily get rid of div/0 error

thanks








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
some help with an IF formual or something like it Lost Will Excel Worksheet Functions 4 November 19th 08 12:00 PM
Formual Jodi Excel Worksheet Functions 1 May 16th 07 01:03 AM
WHAT DOES FORMUAL =C8+ 15 DO Tara Excel Discussion (Misc queries) 1 January 4th 07 03:38 PM
Formual Winnie Excel Discussion (Misc queries) 1 November 13th 06 10:19 AM
Set Formual Winnie Excel Discussion (Misc queries) 2 November 13th 06 09:47 AM


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