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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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