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!
 
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))
Hello! I am using this formula right now to mark the lowest number with 1 and highest with 10: =1-9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1)) but can you help me with finding a formula that does the opposite also? Meaning the highest number will be 1 and the lowest 10.
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If you formula outputs 1, 2, 3,.., 9, 10, then to get the reverse try subtracting what you have from 11...

=11-(1-9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1)))

which simplifies to this...

=10+9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1))
 
Upvote 0
If you formula outputs 1, 2, 3,.., 9, 10, then to get the reverse try subtracting what you have from 11...

=11-(1-9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1)))

which simplifies to this...

=10+9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1))
It now gives the smallest number value of 10 and the highest value of 19 instead of 1 :(
 
Upvote 0
Does this formula (which you posted in Message #1) with the minus sign as the second character...

=1-9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1))

actually output the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 for you?
 
Upvote 0
Does this formula (which you posted in Message #1) with the minus sign as the second character...

=1-9*(A1-MIN(A$1))/(MAX(A$2)-MIN(A$1))

actually output the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 for you?
Yes
 
Upvote 0
What is 11 minus each of those numbers? Seems to me it should be the series you asked for. Did you use the formula I posted in Message #12? Or did you just put 11- in front of your existing formula? If the latter, that is the problem because you forgot to protect the minus sign in front of the 9 by enclosing your original formula in parentheses.
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,049
Latest member
THMarana

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