Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
some help with an IF formual or something like it | Excel Worksheet Functions | |||
Formual | Excel Worksheet Functions | |||
WHAT DOES FORMUAL =C8+ 15 DO | Excel Discussion (Misc queries) | |||
Formual | Excel Discussion (Misc queries) | |||
Set Formual | Excel Discussion (Misc queries) |