Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002: How to realign data table ?

Dear Sir,

May I know if it is possible for me to realign data in Table 1 to Table 2 in
a single step by entering formulas in block A10: C25 ?

At present I do it in a few steps by transposing it first, and entering 3
seperate formulas at A10, B10 and C10 then copy downwards.


Table 1

A B C D E
Code 1 2 3 4
1 K125 200 250 390 410
2 P254 300 360 660 840
3 S141 400 380 910 520
4 T287 500 420 210 180



Table 2

10 K125 1 200
11 K125 2 250
12 K125 3 390
13 K125 4 410
14 P254 1 300
15 P254 2 360
16 P254 3 660
17 P254 4 840
18 S141 1 400
19 S141 2 380
20 S141 3 910
21 S141 4 520
22 T287 1 500
23 T287 2 420
24 T287 3 210
25 T287 4 180


Thanks

Low

--
A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Excel 2002: How to realign data table ?

Try Pivot Table.
No formulas needed:
http://www.freefilehosting.net/download/3cad0

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002: How to realign data table ?

Hello Herbert,

Thanks for the tip.

Low

--
A36B58K641


"Herbert Seidenberg" wrote:

Try Pivot Table.
No formulas needed:
http://www.freefilehosting.net/download/3cad0


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default Excel 2002: How to realign data table ?

With the original data in A1:E5, create a pivot table. Drag the Code field
into the Rows area, and one by one drag the fields 1, 2, 3, 4 into the data
area. Copy the pivot table, paste it in another range as values, replace
"Sum of " with "". Select the blank cells in the first pasted column (use
Ctrl+G, Special, Blanks), type = in the formula bar, press the up arrow, and
Press enter, to fill the blanks with the value above. Copy and paste special
values of this range. There's your table.

To do it with formulas, enter this in A10:

=INDEX($A$2:$A$5,(ROW()-ROW($A$10))/4+1)

enter this in B10:

=MOD(ROW()-ROW($A$10),4)+1

and enter this in C10:

=INDEX($B$2:$E$5,(ROW()-ROW($A$10))/4+1,B10)

Then fill these down to row 25.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Mr. Low" wrote in message
...
Dear Sir,

May I know if it is possible for me to realign data in Table 1 to Table 2
in
a single step by entering formulas in block A10: C25 ?

At present I do it in a few steps by transposing it first, and entering 3
seperate formulas at A10, B10 and C10 then copy downwards.


Table 1

A B C D E
Code 1 2 3 4
1 K125 200 250 390 410
2 P254 300 360 660 840
3 S141 400 380 910 520
4 T287 500 420 210 180



Table 2

10 K125 1 200
11 K125 2 250
12 K125 3 390
13 K125 4 410
14 P254 1 300
15 P254 2 360
16 P254 3 660
17 P254 4 840
18 S141 1 400
19 S141 2 380
20 S141 3 910
21 S141 4 520
22 T287 1 500
23 T287 2 420
24 T287 3 210
25 T287 4 180


Thanks

Low

--
A36B58K641



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002: How to realign data table ?

Hello Jon,

Thanks for your formulas and detail explanation.

Kind Regards

Low
--
A36B58K641


"Jon Peltier" wrote:

With the original data in A1:E5, create a pivot table. Drag the Code field
into the Rows area, and one by one drag the fields 1, 2, 3, 4 into the data
area. Copy the pivot table, paste it in another range as values, replace
"Sum of " with "". Select the blank cells in the first pasted column (use
Ctrl+G, Special, Blanks), type = in the formula bar, press the up arrow, and
Press enter, to fill the blanks with the value above. Copy and paste special
values of this range. There's your table.

To do it with formulas, enter this in A10:

=INDEX($A$2:$A$5,(ROW()-ROW($A$10))/4+1)

enter this in B10:

=MOD(ROW()-ROW($A$10),4)+1

and enter this in C10:

=INDEX($B$2:$E$5,(ROW()-ROW($A$10))/4+1,B10)

Then fill these down to row 25.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Mr. Low" wrote in message
...
Dear Sir,

May I know if it is possible for me to realign data in Table 1 to Table 2
in
a single step by entering formulas in block A10: C25 ?

At present I do it in a few steps by transposing it first, and entering 3
seperate formulas at A10, B10 and C10 then copy downwards.


Table 1

A B C D E
Code 1 2 3 4
1 K125 200 250 390 410
2 P254 300 360 660 840
3 S141 400 380 910 520
4 T287 500 420 210 180



Table 2

10 K125 1 200
11 K125 2 250
12 K125 3 390
13 K125 4 410
14 P254 1 300
15 P254 2 360
16 P254 3 660
17 P254 4 840
18 S141 1 400
19 S141 2 380
20 S141 3 910
21 S141 4 520
22 T287 1 500
23 T287 2 420
24 T287 3 210
25 T287 4 180


Thanks

Low

--
A36B58K641






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
EXcel 2002: How to rearrange data table ? Mr. Low Excel Discussion (Misc queries) 0 February 20th 08 01:58 PM
Excel 2002 Pivot Table: Can I use it for transposing data ? Mr. Low Excel Discussion (Misc queries) 6 October 13th 07 06:32 AM
Excel 2002: Why the first row of the subtotal table always not add Mr. Low Excel Discussion (Misc queries) 8 August 20th 07 07:16 AM
Specifying table in Excel 2002 web queries claytorm Excel Discussion (Misc queries) 0 July 31st 06 03:37 PM
How do I display a data table in an Excel 2002 chart? Dr. Mark F. Charts and Charting in Excel 3 December 29th 04 03:04 PM


All times are GMT +1. The time now is 10:18 PM.

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

About Us

"It's about Microsoft Excel"