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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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