IF Less than 29,1 If more than 30 less than 100,2 if more than 100 less than 200,3

Fuzzy

New Member
Joined
May 13, 2010
Messages
37
I have tried a number of formulas but don't get it right. I'm after:
iF A1 is greater than 0 but less than 29, 1
IF A1 is greater than 30 but less than 100, 2
IF A1 is greater than 100 but less than 200, 3 etc
Assistance certainly appreciated
Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Code:
=IF(A1<30,1,IF(A1<100,2,IF(A1<200,3,IF(A1<300,4,"No"))))
 
Upvote 0
=MATCH(A1,{0,30,100,200})

returns 1 for 0 to less than 30, 2 for 30 to less than 100, 3 for 100 to less than 200, and 4 for 200 or more.

Hopefully, it is obvious how to expand the curly-braced constant array to include "etc".
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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