Is it possible to simplify

gdrowell

New Member
Joined
Dec 13, 2017
Messages
40
Hello All,

Is there a way to simple this nested IF statement?

=IF(D180="","",IF(AND(B180>=25),"6",IF(AND(B180<25,B180>=24.1),"5+1",IF(AND(B180<24.1,B180>=20),"5",IF(AND(B180<20,B180>=19.1),"4+1",IF(AND(B180<19.1,B180>=15),"4",IF(AND(B180<15,B180>=14.1),"3+1",IF(AND(B180<14.1,B180>=10),"3",IF(AND(B180<10,B180>=9.1),"2+1",IF(AND(B180<9.1,B180>=2),"2",IF(AND(B180<2,B180>=1.1),"1+1",IF(AND(B180<1.1,B180>=0),"1","0"))))))))))))
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try:

=IF(D180="","",LOOKUP(B180,{0,1.1,2,9.1,10,14.1,15,19.1,20,24.1,25},{0,"1+1",2,"2+1",3,"3.1",4,"4+1",5,"5+1",6}&""))
 
Upvote 0
With a Lookup table or self-contained lookup.


Excel 2010
DE
166
3c
Cell Formulas
RangeFormula
D1=LOOKUP(B180,A1:B12)
E1=LOOKUP(B180,{0,0;0.00001,1;1.1,"1+1";2.01,"2";9.1,"2+1";10,"3";14.11,"3+1";15,"4";19.1,"4+1";20,"5";24.1,"5+1";25,"6"})


Add your part about D180 if required.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top