IFS, OR, AND Formula help

NealGowdy11

New Member
Joined
Sep 20, 2016
Messages
14
Good morning all,

Im am banging my head against a wall trying to get this formula to work.. i think i am over thinking it and the solution is probably easier than i am thinking.

In column A i have a list of guest rooms:

201
202
203
204
301
302
303
304
401
402
403
401

ETC...

In column B id like the value to read "Level 2" if the cell in column A's value is between 200-299, "Level 3" is the cell in column 's value is between 300-399 etc.

Hope that makes sense.

Thank you
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You could use this formula.

=CHOOSE(LEFT(A1,1)*1-1,"Level 2","Level 3","Level 4")

1625616860702.png


Kind regards

Saba
 
Upvote 0
Can you please update version(s) of Excel that you are using so that we can provide right solutions for your version of Excel?

Kind regards

Saba
 
Upvote 0
If you know you are not going past 9 levels, then
="Level " & LEFT(A1,1)
Wouldn't you be able to expand on that for more than 9 levels just in case by going

="Level "&LEFT(A1,len(A1)-2)

Assuming the last 2 digits are always going to be the room number on the floor, and everything else is the level of the room, this should work indefinitely right?
 
Upvote 0
Wouldn't you be able to expand on that for more than 9 levels just in case by going

="Level "&LEFT(A1,len(A1)-2)

Assuming the last 2 digits are always going to be the room number on the floor, and everything else is the level of the room, this should work indefinitely right?

Correct. I lost the debate I was having with myself on whether to edit my post and add that in 2 secs after I hit send. ;)
 
Upvote 0
Correct. I lost the debate I was having with myself on whether to edit my post and add that in 2 secs after I hit send. ;)
All good! I'm still relatively new to the fancy stuff Excel can do and was also just seeing if I was right in my thinking or if I had missed something major :P
 
Upvote 0
You could use this formula to cater for 99 level

=LET(lev,LEN(A1),IFS(lev=3,"Level "&LEFT(A1,1),lev=4,"Level "&LEFT(A1,2)))

1625623664090.png


Kind regards

Saba
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,171
Members
452,615
Latest member
bogeys2birdies

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