LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 98
Default More than 16 nested IFs!!!!

Hi all,

I used Chip Pearsons method of overcoming 7 nested IF statements using named
ranges and this worked (http://www.cpearson.com/excel/nested.htm) but now I
have some additions to my formula which makes the total number of IFs 16 -
how do I get over more than 7 IFs in each of my seperate named ranges???

Here is my whole formula!!! It calculates the lowest margin for a range of
selling prices. P and R are new and old standard costs (I need to use R in
the calculation if P is 0), the rest of the cells are 4 different prices
volume breaks, the lowest of which needs to be used in the calculation. To
make matters worse there is a new and old column for each price break and
obviously I need to use the new but revert back to using the old if no new
price is entered! Hence my 16 IFs!!!

=
IF(AND($P20,$AA20),((($AA2-$P2))/$AA2),IF(AND($P2=0,$AA20),((($AA2-$Q2))/$AA2),IF(AND($P20,$AJ20),((($AJ2-$P2))/$AJ2),IF(AND($P2=0,$AJ20),((($AJ2-$Q2))/$AJ2),IF(AND($P20,$AS20),((($AS2-$P2))/$AS2),IF(AND($P2=0,$AS20),((($AS2-$Q2))/$AS2),IF(AND($P20,$BB20),((($BB2-$P2))/$BB2),IF(AND($P2=0,$BB20),((($BB2-$Q2))/$BB2),IF(AND($P20,$X20,$AG20,$AP20,$AY20),((( $AY2-$P2))/$AY2),IF(AND($P20,$X20,$AG20,$AP20,$AY2=0),((( $AP2-$P2))/$AP2),IF(AND,($P20,$X20,$AG20,$AP2=0,$AY2=0),(( ($AG2-$P2))/$AG2),IF(AND($P20,$X20,$AG2=0,$AP2=0,$AY2=0),((( $X2-$P2))/$X2),IF(AND($P2=0,$X20,$AG20,$AP20,$AY20),((($ AY2-$Q2))/$AY2),IF(AND($P2=0,$X20,$AG20,$AP20,$AY2=0),((( $AP2-$Q2))/$AP2),IF(AND($P2=0,$X20,$AG20,$AP2=0,$AY2=0),((( $AG2-$Q2))/$AG2),IF(AND($P2=0,$X20,$AG2=0,$AP2=0,$AY2=0),((( $X2-$Q2))/$X2),0))))))))))))))))


 
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 statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
Nested Subtotals in Excel 2002 KG Excel Discussion (Misc queries) 2 September 10th 05 11:51 AM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
how can I exceed the nested if fuction limit mgdye Excel Discussion (Misc queries) 5 January 30th 05 02:09 PM


All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"