reformatting data to create a table

mjb

New Member
Joined
Feb 28, 2002
Messages
12
Is there an easy way to reformat data as follows

Jan Mike 200
Jan Dave 300
Jan Jim 400
Jan Ken 500
Feb Mike 600
Feb Dave 800
Feb Jim 150
Feb Ken 900

to

________Mike____Dave____Jim____Ken
Jan_____200_____300_____400____500
Feb_____600_____800_____150____900
This message was edited by mjb on 2002-03-01 05:50
This message was edited by mjb on 2002-03-01 05:53
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
On 2002-03-01 05:49, mjb wrote:
Is there an easy way to reformat data as follows

Jan Mike 200
Jan Dave 300
Jan Jim 400
Jan Ken 500
Feb Mike 600
Feb Dave 800
Feb Jim 150
Feb Ken 900

to

________Mike____Dave____Jim____Ken
Jan_____200_____300_____400____500
Feb_____600_____800_____150____900
This message was edited by mjb on 2002-03-01 05:50
This message was edited by mjb on 2002-03-01 05:53

Assuming that that data you posted goes from A2:C9 and the number ARE numbers, in A18 put Jan and copy down i.e. Feb, Mar etc.
In B17 put your first name and fill the rest in along that row. (these might seem like strange places, it's just where put them to test),
In b18 put:

=SUMPRODUCT(($A$2:$A$8=$A18)*($B$2:$B$8=B$17)*($C$2:$C$8))

Using the $'s in exactly the same place as above, you should be able to drag right then down this formula.

Any prob give me a shout.

Ian Mac
 
Upvote 0

Forum statistics

Threads
1,223,350
Messages
6,171,592
Members
452,412
Latest member
sprichwort

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