Transforming the Range of Data

jalevin1

New Member
Joined
Mar 28, 2014
Messages
1
Hello,

I have two fields with data each ranging from 0 to (potentially) the hundreds of thousands. What I need to accomplish is to re-scale column B so that it matches the range of column A.

For example, if column A values were from 0-50,423 and column B values were from 0-78,534, I'd like to transform the values in column B to equal the range of column A (0-78,534).

Please see the example below example and thank in advance for any suggestions/assistance!


[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]24,923[/TD]
[TD]28,460[/TD]
[/TR]
[TR]
[TD]24,539[/TD]
[TD]27,841[/TD]
[/TR]
[TR]
[TD]23,252[/TD]
[TD]17,353[/TD]
[/TR]
[TR]
[TD]23,139[/TD]
[TD]14,641[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This should do the job.

[TABLE="class: grid, width: 350"]
<tbody>[TR]
[TD="width: 67"][/TD]
[TD="width: 67, align: center"]A[/TD]
[TD="width: 67, align: center"]B[/TD]
[TD="width: 20, align: center"]C[/TD]
[TD="width: 64, align: center"]D[/TD]
[/TR]
[TR]
[TD="width: 67, align: center"]1[/TD]
[TD="width: 67, align: center"]Original A[/TD]
[TD="width: 67, align: center"]Original B[/TD]
[TD="width: 20, align: center"][/TD]
[TD="width: 64, align: center"]Scaled B[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: right"]18,185[/TD]
[TD="align: right"]28,460[/TD]
[TD][/TD]
[TD="align: right"]18479[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: right"]10,970[/TD]
[TD="align: right"]27,841[/TD]
[TD][/TD]
[TD="align: right"]18077.08[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: right"]12,672[/TD]
[TD="align: right"]17,353[/TD]
[TD][/TD]
[TD="align: right"]11267.26[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: right"]18,479[/TD]
[TD="align: right"]14,641[/TD]
[TD][/TD]
[TD="align: right"]9506.361[/TD]
[/TR]
</tbody>[/TABLE]

In D2 and copied down:
=B2*MAX($A$2:$A$5)/MAX($B$2:$B$5)
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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