LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 84
Default Want To Shrink Formula

I wrote the following formula which works but it is a mile long and
some of the functions are used more than once. Intuition tells me that
there should be a way to shorten it (i.e. make it more efficient).
I've been trying to do that for hours but my logic simply fails...

Anyone wants to give it a try?

=IF($BC15="PD",IF(OR($R15="INT",$R15="NEE",$R15="O BS"),$J15,IF(AND($E15=
"IT1L",OR($H15="RA",LEFT($D15,3)="1K0",LEFT($A15,3 )="60W",LEFT($A15,3)="
70-")),IF(AND($AS15=$BG$2,$AV15=$BG$3),IF($K15$J15 ,$K15,CEILING($AV15
*$BG$4,$J15)),MAX($J15,$K15)),MAX($J15,$K15))),IF( $BC15="X1",IF(AND($F15
="F",$G15="V"),IF($AV15*$BG$5MAX($J15,$K15),IF(H1 5<"RA",CEILING($AV15*
$BG$5,$J15),IF(CEILING($AV15*$BG$5,$J15)<500,CEILI NG($AV15*$BG$5,$J15),I
F(CEILING($AV15*$BG$5,$J15)<=5000,IF(MOD(100,$J15) =0,CEILING($AV15*$BG$5
,MAX(100,$J15)),CEILING($AV15*$BG$5,LCM(100,$J15)) ),IF(CEILING($AV15*$BG
$5,$J15)<50000,IF(MOD(1000,$J15)=0,CEILING($AV15*$ BG$5,MAX(1000,$J15)),C
EILING($AV15*$BG$5,LCM(1000,$J15))),CEILING($AV15* $BG$5,MAX(2000,$J15)))
))),MAX($J15,$K15)),IF(CEILING($AV15,$J15)<=1000,M ROUND(CEILING($AV15,$J
15),$J15),MROUND(ROUNDUP($AV15,-2),$J15))),"problem!"))

--
tb
 
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
in excel where it says a b c d on top how to shrink that khalid[_2_] Excel Discussion (Misc queries) 1 April 25th 10 03:33 AM
SHRINK AND WRAP Pam M Excel Discussion (Misc queries) 7 June 17th 09 11:06 PM
Shrink to Fit jzapatka Excel Discussion (Misc queries) 0 March 14th 05 03:52 AM
Shrink to Fit jzapatka Excel Discussion (Misc queries) 1 March 13th 05 08:56 AM
Shrink Formula ANTONIO ATALA Excel Programming 1 July 14th 04 07:18 AM


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