Excel convert data to a range from 0-10

mikhrab

New Member
Joined
Mar 3, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have a column represents a set of numbers. Lowest number is 0, highest is 195. What I am trying to do is create a scale of 1-10, where the largest number in the series represents a 10, and the lowest number equals 1.

I am hoping anyone of you can help me create a formula that will automatically scale this large string of numbers into a 1-10 scale.

Thanks in advance for helping me out here!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
There are many ways to map one range into another. The following demonstrates how to do a linear mapping.

Book1
AB
101.0000
2292.3385
31246.7231
4854.9231
519510.0000
Sheet1


The formula in column B is of the form (in B1):

=FORECAST(A1, {1,10}, {0,195})

Caveat: The syntax in your region might differ.
 
Upvote 0
You can also use this formula...

=1+9*A1/195

where the 9 is derived by subtracting the low end (1) from the upper end (10). This formula can be simplified slightly like so...

=1+3*A1/65
 
Upvote 0
Upvote 0
You can also use this formula...

=1+9*A1/195

where the 9 is derived by subtracting the low end (1) from the upper end (10). This formula can be simplified slightly like so...

=1+3*A1/65

Thank you so much for your reply. I'm curious to know why you add 1 to 9?
 
Upvote 0
Welcome to the MrExcel board!

Thank you Peter for you reply.
1583334253365.png


This is the formula that used. Do you think this would work? I used max function because values change every year.
 
Last edited by a moderator:
Upvote 0
This is the formula that used. Do you think this would work?
It will work provided your list always has zero as its lowest number or you want your list treated as if zero is the lowest number as shown in column B below.

However, if you want your results to always stretch from 0 to 10 and zero may not be the lowest number, then look at column C

20 03 04.xlsm
ABC
28540
39551
410552
511563
612564
713575
814575
915586
1016587
1117598
1218599
131951010
1418599
1517598
1616587
1715586
1814575
Scale (2)
Cell Formulas
RangeFormula
B2:B18B2=10*A2/MAX(A$2:A$18)
C2:C18C2=10*(A2-MIN(A$2:A$18))/(MAX(A$2:A$18)-MIN(A$2:A$18))
 
Upvote 0
It will work provided your list always has zero as its lowest number or you want your list treated as if zero is the lowest number as shown in column B below.

However, if you want your results to always stretch from 0 to 10 and zero may not be the lowest number, then look at column C

20 03 04.xlsm
ABC
28540
39551
410552
511563
612564
713575
814575
915586
1016587
1117598
1218599
131951010
1418599
1517598
1616587
1715586
1814575
Scale (2)
Cell Formulas
RangeFormula
B2:B18B2=10*A2/MAX(A$2:A$18)
C2:C18C2=10*(A2-MIN(A$2:A$18))/(MAX(A$2:A$18)-MIN(A$2:A$18))
This is very helpful! Thanks a lot Peter !!
 
Upvote 0
I'm curious to know why you add 1 to 9?
Because you said your range was 1 to 10 in your original post. If the range is actually 0 to 10 (as your later posts seem to suggest), then my formula would become this instead...

=10*A1/195
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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