Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need to add to nested IF

I'm brain dead and tired of looking at this.

I need to add this primary condition: IF($BH11=0,0,...
to this formula:

=IF(OR($S11="7000",$S11="8000",AND($S11="1000",$R1 1<=0.001),AND($S11="1000",$D$7="Y")),IF(AND($S11=" 1000",$D$7="Y"),$C$7,21),IF($S11="1000",IF($R11<1, 90,IF($R11<5,75,IF($R11<10,50,IF($R11<25,35,IF($R1 1<40,30,IF($R11<80,20,15)))))),0))

Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 903
Default Need to add to nested IF

=IF($BH11=0,0, [original formula] )

replace "[original formula]" with your original formula without the
equal sign in front.

--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm



"sernst" wrote in message ...
I'm brain dead and tired of looking at this.

I need to add this primary condition: IF($BH11=0,0,...
to this formula:

=IF(OR($S11="7000",$S11="8000",AND($S11="1000",$R1 1<=0.001),AND($S11="1000",$D$7="Y")),IF(AND($S11=" 1000",$D$7="Y"),$C$7,21),IF($S11="1000",IF($R11<1, 90,IF($R11<5,75,IF($R11<10,50,IF($R11<25,35,IF($R1 1<40,30,IF($R11<80,20,15)))))),0))

Thanks in advance for any help.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Need to add to nested IF


On Fri, 1 Aug 2008 22:51:01 -0700, sernst
wrote:

I'm brain dead and tired of looking at this.

I need to add this primary condition: IF($BH11=0,0,...
to this formula:

=IF(OR($S11="7000",$S11="8000",AND($S11="1000",$R 11<=0.001),AND($S11="1000",$D$7="Y")),IF(AND($S11= "1000",$D$7="Y"),$C$7,21),IF($S11="1000",IF($R11<1 ,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25,35,IF($R 11<40,30,IF($R11<80,20,15)))))),0))

Thanks in advance for any help.



If you don't have Excell 2007 I think that you might have run into a
limit of the number of nested IF statements.

Try to simplify this formula, e.g. like this

The part

IF($R11<1,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25 ,35,IF($R11<40,30,IF($R11<80,20,15))))))

can be replaced with

=LOOKUP($R11,{-999,1,5,10,25,40,80},{90,75,50,35,30,20,15})

make sure that the first number, -999, is less than the least possible
number in cell $R11.

After this change you can wrap the formula in another if, as already
suggested

=IF($BH11=0,0, the rest of your formula goes here)

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 903
Default Need to add to nested IF

"Lars-Åke Aspelin" wrote in message ...

On Fri, 1 Aug 2008 22:51:01 -0700, sernst
wrote:

I'm brain dead and tired of looking at this.

I need to add this primary condition: IF($BH11=0,0,...
to this formula:

=IF(OR($S11="7000",$S11="8000",AND($S11="1000",$ R11<=0.001),AND($S11="1000",$D$7="Y")),IF(AND($S11 ="1000",$D$7="Y"),$C$7,21),IF($S11="1000",IF($R11< 1,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25,35,IF($ R11<40,30,IF($R11<80,20,15)))))),0))

Thanks in advance for any help.



If you don't have Excell 2007 I think that you might have run into a
limit of the number of nested IF statements.

Try to simplify this formula, e.g. like this

The part

IF($R11<1,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25 ,35,IF($R11<40,30,IF($R11<80,20,15))))))

can be replaced with

=LOOKUP($R11,{-999,1,5,10,25,40,80},{90,75,50,35,30,20,15})

make sure that the first number, -999, is less than the least possible
number in cell $R11.

After this change you can wrap the formula in another if, as already
suggested

=IF($BH11=0,0, the rest of your formula goes here)

Hope this helps / Lars-Åke


Thanks, should have looked at the nesting levels before I answered,
and you've greatly simplified the formula.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need to add to nested IF

BEAUTIFUL. I had forgotten about the array form of Lookup. That opens the
possibilty of working with more values in $R which will please my people.

"Lars-Ã…ke Aspelin" wrote:


On Fri, 1 Aug 2008 22:51:01 -0700, sernst
wrote:

I'm brain dead and tired of looking at this.

I need to add this primary condition: IF($BH11=0,0,...
to this formula:

=IF(OR($S11="7000",$S11="8000",AND($S11="1000",$R 11<=0.001),AND($S11="1000",$D$7="Y")),IF(AND($S11= "1000",$D$7="Y"),$C$7,21),IF($S11="1000",IF($R11<1 ,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25,35,IF($R 11<40,30,IF($R11<80,20,15)))))),0))

Thanks in advance for any help.



If you don't have Excell 2007 I think that you might have run into a
limit of the number of nested IF statements.

Try to simplify this formula, e.g. like this

The part

IF($R11<1,90,IF($R11<5,75,IF($R11<10,50,IF($R11<25 ,35,IF($R11<40,30,IF($R11<80,20,15))))))

can be replaced with

=LOOKUP($R11,{-999,1,5,10,25,40,80},{90,75,50,35,30,20,15})

make sure that the first number, -999, is less than the least possible
number in cell $R11.

After this change you can wrap the formula in another if, as already
suggested

=IF($BH11=0,0, the rest of your formula goes here)

Hope this helps / Lars-Ã…ke

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
Nested if ab3d4u[_25_] Excel Worksheet Functions 5 December 19th 07 06:46 PM
Nested if help Curtis Excel Worksheet Functions 1 December 5th 07 06:03 PM
nested if Janis Excel Discussion (Misc queries) 3 July 27th 07 11:54 PM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
More than 16 nested IFs!!!! Meltad Excel Worksheet Functions 11 October 6th 06 09:49 AM


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