Transforming data

keops

New Member
Joined
Nov 16, 2012
Messages
4
Hi guys!

I came acroos a problem.

I have data in this form:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Region[/TD]
[TD]Salary[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1700[/TD]
[/TR]
</tbody>[/TABLE]

I would like to transform them into this form


[TABLE="width: 500"]
<tbody>[TR]
[TD]Region 1[/TD]
[TD]Region 2[/TD]
[TD]Region 3[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]2000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1500[/TD]
[TD]1700[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Is there any easy way?

Uros
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Uros, welcome to MrExcel.

This may not be the best solution, but it appears to work!

Excel Workbook
ABCDEF
1RegionSalaryRegion 1Region 2Region 3
211000100020003000
32200015001700
433000
511500
621700
7
8
9
10
11
Sheet1


The formula in D2 needs to be entered with ctrl shift enter NOT just enter.
You can then copy it across and down.
If you put some test data into rows 7:10, you will hopefully see the formula update!!

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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