Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
I use this formula in Column E ( %Gain + / - ) =IF(B4=0,D4,IF(D4<0,D4,IF(D4<100,(D4-100),IF(B4=0,D4*C4)))) Column A = Day Column B = Planned Column C = Actual Column D = %Actual Column E = %Gain + / - Column F = %RunningTotal It does almost everything I desire, with one minor omition, It does not return a ( 0 ) when the following condition happens: If the Planned & Actual = the same, the there is ( 0 ) zero diff + / - the problem is in the %Gain + / - is returning/displaying a "FALSE" statement instead of displaying a zero, all the other equations work out fine, just need to convert the False to a zero and it's finished. TIA Mick. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just goes to show.
You show not try and do equations when you are tired.... =IF(B4=0,D4,IF(D4<0,D4,IF(D4<100,(D4-100),0))) Sorry for wasting time. Cheers again Mick. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Vacuum Sealed" wrote in message
ond.com... Just goes to show. You show not try and do equations when you are tired.... =IF(B4=0,D4,IF(D4<0,D4,IF(D4<100,(D4-100),0))) Sorry for wasting time. Cheers again Mick. Often when I'm building a nested (or otherwise "somewhat complex") formula I will use multiple helper cells and build my formula "one piece at a time" until I get the results I'm after ... then I put it all together and test it again. I find it much easier to debug my logic that way. -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Clif
Make perfectly logical sense Thank you. Mick. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Percentage Variation - when values are zero | Excel Worksheet Functions | |||
Using some variation of int or trunc | Excel Discussion (Misc queries) | |||
Variation on If Then Else Theme | Excel Discussion (Misc queries) | |||
Variation from the mean? | Charts and Charting in Excel | |||
need a variation in VBA for subtotals | Excel Programming |