Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default + / - Percentage Variation

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default + / - Percentage Variation

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default + / - Percentage Variation

"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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default + / - Percentage Variation

Clif

Make perfectly logical sense

Thank you.
Mick.


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
Percentage Variation - when values are zero LinLin Excel Worksheet Functions 8 May 5th 23 07:47 PM
Using some variation of int or trunc april Excel Discussion (Misc queries) 1 August 10th 09 09:44 PM
Variation on If Then Else Theme DubboPete Excel Discussion (Misc queries) 2 April 17th 09 03:17 AM
Variation from the mean? Greenwich_Man Charts and Charting in Excel 1 September 25th 07 03:14 PM
need a variation in VBA for subtotals CJ[_5_] Excel Programming 1 June 4th 06 05:04 PM


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