Lots of "IFs" in an If statement

Excel1991

Board Regular
Joined
Aug 1, 2018
Messages
58
Good Afternoon,

I was hoping that the forum may be able to help me with amultilevel “IF” function. I do not think it would be very complicated but I can’tquite nail down the formula.
What I would like to do is have the formula display thefollowing:

  • If cellA1 is greater than $30,000 assign it an “A”
  • If cell A1 is greater than or equal to 15k butless than 30k, assign it a “B”
  • If cell A1 is greater than or equal to 6k butless than 15k, assign it a “C”
  • For any value less than 6k, assign it a “D”


So summed up it would be

  • >30 k …….”A”
  • >15k but <30k….”B”
  • >6k but <14999…..”C”
  • <5999 …..”D”

Would anyone have any input on how to go about this IF statement,or if perhaps there is an easier function? Thank you!

 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
One way is to use a NESTED IF, i.e.
Code:
=IF(A1>30000,"A",IF(A1>15000,"B",IF(A1>6000,"C","D")))
 
Upvote 0
Hi,

Your description has gaps between levels, at exactly 6000, 15000, 30000 has no designation, I've assumed 6000 or higher, 15000 or higher, etc.


Book1
ABCDE
115000BBB
Sheet287
Cell Formulas
RangeFormula
C1=IF(A1>=30000,"A",IF(A1>=15000,"B",IF(A1>=6000,"C","D")))
D1=LOOKUP(A1,{0,6000,15000,30000},{"D","C","B","A"})
E1=IFERROR(LOOKUP(A1,{0,6000,15000,30000},{"D","C","B","A"}),"D")


Edit: If you might have Negative values in A1, use the alternate LOOKUP formula in E1, otherwise D1 will do.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
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