Hi,
I need to do conversions on some data using ratios. (It's based on the reorganisation of spatial boundaries). I cannot figure out how to apply the different ratios to the same case/code (it's a very large database, so doing it individually is not possible)
An example of my dataset:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Variable1[/TD]
[TD]Variable 2[/TD]
[TD]Variable 3[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]115[/TD]
[TD]600[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]30[/TD]
[TD]204[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]20[/TD]
[TD]54[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]6[/TD]
[TD]361[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]1005[/TD]
[TD]12[/TD]
[TD]214[/TD]
[TD]69[/TD]
[/TR]
</tbody>[/TABLE]
An example of the conversion table (FROM Case*ratio = TO Case):
[TABLE="width: 500"]
<tbody>[TR]
[TD]FROM Code[/TD]
[TD]TO Code[/TD]
[TD]Ratio[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]3311[/TD]
[TD].982[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]3314[/TD]
[TD].018[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]8350[/TD]
[TD].856[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]3314[/TD]
[TD].004[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]3700[/TD]
[TD].140[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]3314[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]3700[/TD]
[TD].560[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]3640[/TD]
[TD].440[/TD]
[/TR]
</tbody>[/TABLE]
I need to use the ratio to convert the data in the first table to the new coding. I've looked into Vlookup and Index-match, but still not sure how to go about it. Any advice would be appreciated!
Thanks!
I need to do conversions on some data using ratios. (It's based on the reorganisation of spatial boundaries). I cannot figure out how to apply the different ratios to the same case/code (it's a very large database, so doing it individually is not possible)
An example of my dataset:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Variable1[/TD]
[TD]Variable 2[/TD]
[TD]Variable 3[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]115[/TD]
[TD]600[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]30[/TD]
[TD]204[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]20[/TD]
[TD]54[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]6[/TD]
[TD]361[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]1005[/TD]
[TD]12[/TD]
[TD]214[/TD]
[TD]69[/TD]
[/TR]
</tbody>[/TABLE]
An example of the conversion table (FROM Case*ratio = TO Case):
[TABLE="width: 500"]
<tbody>[TR]
[TD]FROM Code[/TD]
[TD]TO Code[/TD]
[TD]Ratio[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]3311[/TD]
[TD].982[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]3314[/TD]
[TD].018[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]8350[/TD]
[TD].856[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]3314[/TD]
[TD].004[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]3700[/TD]
[TD].140[/TD]
[/TR]
[TR]
[TD]1003[/TD]
[TD]3314[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]3700[/TD]
[TD].560[/TD]
[/TR]
[TR]
[TD]1004[/TD]
[TD]3640[/TD]
[TD].440[/TD]
[/TR]
</tbody>[/TABLE]
I need to use the ratio to convert the data in the first table to the new coding. I've looked into Vlookup and Index-match, but still not sure how to go about it. Any advice would be appreciated!
Thanks!