Assigning a Value Based on a Range

suertetres

New Member
Joined
Nov 8, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone, I've searched, but may be calling it the wrong thing...I'm trying to assign a point range for a specific set of numbers and need help with the formula. The number after the = sign is the point i want to assign. Is there an if/then statement that could accomodate this large of a range?

The ranges are as follows:
>= 120% = 4
110.00%-119.99% = 3.5
90.00%-109.99%= 3
84%-89.99%= 2.5
75%-83.99%=2
67%-74.99%= 1.5
60%-66.99%= 1
55%-59.99%= .5
<54.99% = 0
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Something like this might work:

VBA Code:
=IFS(B1>=1.2,4,B1>=1.1,3.5,B1>=0.9,3,B1>=0.84,2,B1>=0.75,2,B1>=0.67,1.5,B1>=0.6,1,B1>=0.55,0.5,B1<=54.99,0)

This assume your data is on Column A. Please place this formula in Column B.
 
Upvote 0
You could make a lookup table like the following, and use the formula to reference the table. You can also do this just in a formula without the lookup table, but then you would have to update the formula anytime a range/score changes instead of just changing it in the table.

Book1
ABCDE
1RangePoints
20%095.00%3
355%0.584.00%2.5
460%1113.00%3.5
567%1.572.00%1.5
675%259.99%0.5
784%2.5135.00%4
890%374.99%1.5
9110%3.554.99%0
10120%4119.99%3.5
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=LOOKUP(D2,$A$2:$A$10,$B$2:$B$10)
 
Upvote 1
Something like this might work:

VBA Code:
=IFS(B1>=1.2,4,B1>=1.1,3.5,B1>=0.9,3,B1>=0.84,2,B1>=0.75,2,B1>=0.67,1.5,B1>=0.6,1,B1>=0.55,0.5,B1<=54.99,0)

This assume your data is on Column A. Please place this formula in Column B.
Thank you- i tried and it returned a 0 for the value in the B cell
 
Upvote 0
You could make a lookup table like the following, and use the formula to reference the table. You can also do this just in a formula without the lookup table, but then you would have to update the formula anytime a range/score changes instead of just changing it in the table.

Book1
ABCDE
1RangePoints
20%095.00%3
355%0.584.00%2.5
460%1113.00%3.5
567%1.572.00%1.5
675%259.99%0.5
784%2.5135.00%4
890%374.99%1.5
9110%3.554.99%0
10120%4119.99%3.5
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=LOOKUP(D2,$A$2:$A$10,$B$2:$B$10)
Thakn you for this. Would you mind explaining this in a little more detail? While I'm pretty versed in basic Excel functions, this is a bit above my level of knowledge. What are columns D and E in your example? Would I just put the table off on a different page?
 
Upvote 0
See column G for the formula only version:

Book1
ABCDEFG
1RangePoints
20%095.00%33
355%0.584.00%2.52.5
460%1113.00%3.53.5
567%1.572.00%1.51.5
675%259.99%0.50.5
784%2.5135.00%44
890%374.99%1.51.5
9110%3.554.99%00
10120%4119.99%3.53.5
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=LOOKUP(D2,$A$2:$A$10,$B$2:$B$10)
G2:G10G2=LOOKUP(D2,{0,0.55,0.6,0.67,0.75,0.84,0.9,1.1,1.2},{0,0.5,1,1.5,2,2.5,3,3.5,4})
 
Upvote 1
Solution
Thakn you for this. Would you mind explaining this in a little more detail? While I'm pretty versed in basic Excel functions, this is a bit above my level of knowledge. What are columns D and E in your example? Would I just put the table off on a different page?
Yes, you can put the table wherever you want it to be. Another sheet would help keep it out of the way. Columns D and E are my test values to show the formula working and for you to decide if those are the values you expect to get from it.
 
Upvote 0
Yes, you can put the table wherever you want it to be. Another sheet would help keep it out of the way. Columns D and E are my test values to show the formula working and for you to decide if those are the values you expect to get from it.
Thank you so much for helping, I'm going to try and implement this now. Again- truly appreciate you.
 
Upvote 0
Let us know how it works, and you're welcome. I am happy to help.
 
Upvote 0

Forum statistics

Threads
1,215,135
Messages
6,123,241
Members
449,093
Latest member
Vincent Khandagale

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