Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default How to go from table to rows??

Hi,

I have a problem changing the setup of my data in order to merge it into
another dataset.

Now I have data like this:

Person\Year
1981 1982 1983
1 12 22 11
2 8 34 1
3 42 9 14

What I want is data like this:

Person year
1 1981 12
1 1982 22
1 1983 11
Etc...

That is go from matrix to column based.
Can anyone help???

Best
Anders


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to go from table to rows??

Assume source data as posted is in Sheet1, where
in A2 down are the numbers: 1,2,3..
in B1:D1 are the years: 1981, 1982, 1983

In another sheet,
In A2: =OFFSET(Sheet1!$A$2,INT((ROWS($1:1)-1)/3),)
In B2: =INDEX(Sheet1!$B$1:$D$1,MOD(ROWS($1:1)-1,3)+1)
In C2: =OFFSET(Sheet1!$B$2,INT((ROWS($1:1)-1)/3),MOD(ROWS($1:1)-1,3))
Select A2:C2, copy down as far as required
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,600 Files:362 Subscribers:60
xdemechanik
---
"Anders" wrote:
I have a problem changing the setup of my data in order to merge it into
another dataset.

Now I have data like this:

Person\Year
1981 1982 1983
1 12 22 11
2 8 34 1
3 42 9 14

What I want is data like this:

Person year
1 1981 12
1 1982 22
1 1983 11
Etc...

That is go from matrix to column based.
Can anyone help???

Best
Anders


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I add rows to a table on SheetA & have SheetB's table upda birdpants Excel Discussion (Misc queries) 0 August 6th 07 10:10 PM
Pivot table sum of rows sushma Charts and Charting in Excel 0 March 21st 07 05:32 AM
Insert rows in linked table that are added to secondary table Ida LaValley Excel Discussion (Misc queries) 2 August 21st 06 10:52 PM
how to interchange rows to columns & columns to rows in a table kotakkamlesh Excel Discussion (Misc queries) 1 July 10th 06 07:58 AM
Matching table rows steev_jd Excel Discussion (Misc queries) 2 April 6th 06 03:45 PM


All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"