|
Question : Overcome Excel MAX num of nested if statement
|
|
I have 14 level nested if statement (see attached). Excel 2003 will only let me use 8 levels. What is another way I can still retun this desired value and or change the max number of allowed nested statements?
=IF(C6<250,"25.00",IF(AND(C6>249,C6<500),"35.00",IF(AND(C6>499,C6<750),"$50.00",IF(AND(C6>749,C6<1000),"$65.00",IF(AND(C6>999,C6<1250),"$80.00",IF(AND(C6>1249,C6<1500),"$95.00",IF(AND(C6>1499,C6<2000),"$105.00",IF(AND(C6>1999,C6<2500),"$120.00",IF(AND(C6>2499,C6<3000),"$135.00",IF(AND(C6>2999,C6<3500),"$150.00",IF(AND(C6>3499,C6<4000),"$165.00",IF(AND(C6>3999,C6<4500),"$180.00",IF(AND(C6>4499,C6<5000),"$190.00",IF(C6>=5000,"$200.00"," "))))))))))))))
|
|
Answer : Overcome Excel MAX num of nested if statement
|
|
I think you want: =LOOKUP(C6,{0,250,500,750,1000,1250,1500,2000,2500,3000,3500,4000,4500,5000},{25,35,50,65,80,95,105,120,135,150,165,180,190,200})
|
|
|
|