Need help with simple formula reminder

cmisero

New Member
Joined
Jan 4, 2018
Messages
5
Been so long since I've had to do it, just drawing a blank.Essentially I want a number to generate in a cell that depends on what range of numbers is in a previous cell.
In layman's terms- If A1 is greater than 60% B1 should show a 3. If A1 is between 50 and 60% B1 should show a 2. If A1 is less than 50% B1 should show a 3

Apologies if this is in the wrong section
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
You have if A1 >60% then 3 & A1<50% then 3. Is that right?
Also will your figures always be positive numbers?
 
Upvote 0
=IFS(A1>60%,3,AND(A1>=50%,A1<=60%),2,A1<50%,1)
I assumed you wanted a 1 if the value was less than 50%. This assumes you have the latest version of Excel to the IFS function. If not, let me knoiw.
 
Upvote 0
Solution
You have if A1 >60% then 3 & A1<50% then 3. Is that right?
Also will your figures always be positive numbers?
Apologies. Typo. If A1 >60% then 3. If A1 is between 50 & 60% then 2 and If A1<50% then 1

All will be positive numbers
 
Upvote 0
Thanks for that.
Another option
Excel Formula:
=LOOKUP(A1,{0,0.5,0.6},{1,2,3})
 
Upvote 0
This can also be done by using the vlookup table:

"true" command in the vlookup formula looks for the closest match before moving to the next range.

To me this is helpful as I can change the criteria in the future if need be. (my 2 cents)

1603307218510.png
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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