partial Transpose

pippop

New Member
Joined
Jun 24, 2014
Messages
2
Hi all

I am trying to change this table to the next. I can sort of get there with pivot, but wonder if there is a simple method to keep the file flat?

Many thanks
2001200220032004
Areaagenumber of peoplenumber of peoplenumber of peoplenumber of people
area11 year old100107108112
area12 year old10099
9799
area13 year old106878788
area21 year old50494960
area22 year old39404142
area23 year old42434445

<tbody>
</tbody>



1 year old2 year old3 year old
AREAYEARnumber of peoplenumber of peoplenumber of people
area12001100100106
area120021079987
area120031089787
area120041129988
area22001503942
area22002494043
area22003494144
area22004604245

<tbody>
</tbody>

Many Thanks
:confused:
Phil
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Given in A1:

Excel 2010
ABCDEF
12001200220032004
2Areaagenumber of peoplenumber of peoplenumber of peoplenumber of people
3area11 year old100107108112
4area12 year old100999799
5area13 year old106878788
6area21 year old50494960
7area22 year old39404142
8area23 year old42434445
9
10
11
121 year old2 year old3 year old
13AREAYEARnumber of peoplenumber of peoplenumber of people
14area12001100100106
15area120021079987
16area120031089787
17area120041129988
18area22001503942
19area22002494043
20area22003494144
21area22004604245
Sheet4



Formula in C14 is =INDEX($C$3:$F$8,MATCH(1,INDEX(($B$3:$B$8=C$12)*($A$3:$A$8=$A14),0),0),MATCH($B14,$C$1:$F$1,0)) copied right and down till needed.

Would that work for you?
 
Upvote 0
Thanks cyrilbrd

This looks very promising. Thanks for quick reply. It certainly does what I am looking for. I just need to work out a way for changing the Columns A and B (I have 91 age variables and 365 areas to deal with making over 33,000 rows)

I will report back soon.

Thanks again:)
 
Upvote 0
Thanks cyrilbrd

This looks very promising. Thanks for quick reply. It certainly does what I am looking for. I just need to work out a way for changing the Columns A and B (I have 91 age variables and 365 areas to deal with making over 33,000 rows)

I will report back soon.

Thanks again:)
Noted. Most welcome.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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