#1   Report Post  
Juan
 
Posts: n/a
Default Convert Rows data

Hi there,
I have the following sample data:
PARTNUMBER QTY RATe PRUN VALID_FROM_VALID_TO
ZWR1 0.1095 USD 1 20050512 20050526
XREZ12 0.1095 USD 1 20050527 99991231

is it possible to put this data in the following:

20050512 20050526 20050527 99991231
ZWR1 XREZ12
0.1095 0.1095
USD USD
1 1

So basically make the existing Row heading as Column heading, Please advise
if this can be done. Been trying to do with pivot but can't seem to get it to
work.

Really appreciate any help.
Thank YOU,
J
  #2   Report Post  
Max
 
Posts: n/a
Default

One interp, and play (assume you want it dynamic) ..

Assuming sample table is in Sheet1,
in A1:E3, data from row2 down,
where E1:E3 houses:

VALID_FROM_VALID_TO
20050512 20050526
20050527 99991231

In a new Sheet2
-----------
Put in A2:

=OFFSET(Sheet1!$E$1,COLUMNS($A$1:A1),)

Copy A2 across as many cols as there are data rows in col E in Sheet1.

For the sample data which is 2 rows, copy A2 across to B2.

Note that the max transposable data rows from Sheet1 will be 256, i.e. the
max # of columns available per sheet

Put in A3:
=OFFSET(Sheet1!$A$1,COLUMNS($A$1:A1),ROWS($A$1:A1)-1)

Copy A3 across as many cols as was done for A2,
fill down by by another 3 rows

For the sample data, copy A3 across to B3, fill down to B6
You should get the desired result in A3:B6

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Juan" wrote in message
...
Hi there,
I have the following sample data:
PARTNUMBER QTY RATe PRUN VALID_FROM_VALID_TO
ZWR1 0.1095 USD 1 20050512 20050526
XREZ12 0.1095 USD 1 20050527 99991231

is it possible to put this data in the following:

20050512 20050526 20050527 99991231
ZWR1 XREZ12
0.1095 0.1095
USD USD
1 1

So basically make the existing Row heading as Column heading, Please

advise
if this can be done. Been trying to do with pivot but can't seem to get it

to
work.

Really appreciate any help.
Thank YOU,
J



  #3   Report Post  
Juan
 
Posts: n/a
Default

Hello Max,
sorry for the late reply. Just wanted to say thanks for your help. This
should do the job.

Really appreciated.

juan

"Max" wrote:

One interp, and play (assume you want it dynamic) ..

Assuming sample table is in Sheet1,
in A1:E3, data from row2 down,
where E1:E3 houses:

VALID_FROM_VALID_TO
20050512 20050526
20050527 99991231

In a new Sheet2
-----------
Put in A2:

=OFFSET(Sheet1!$E$1,COLUMNS($A$1:A1),)

Copy A2 across as many cols as there are data rows in col E in Sheet1.

For the sample data which is 2 rows, copy A2 across to B2.

Note that the max transposable data rows from Sheet1 will be 256, i.e. the
max # of columns available per sheet

Put in A3:
=OFFSET(Sheet1!$A$1,COLUMNS($A$1:A1),ROWS($A$1:A1)-1)

Copy A3 across as many cols as was done for A2,
fill down by by another 3 rows

For the sample data, copy A3 across to B3, fill down to B6
You should get the desired result in A3:B6

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Juan" wrote in message
...
Hi there,
I have the following sample data:
PARTNUMBER QTY RATe PRUN VALID_FROM_VALID_TO
ZWR1 0.1095 USD 1 20050512 20050526
XREZ12 0.1095 USD 1 20050527 99991231

is it possible to put this data in the following:

20050512 20050526 20050527 99991231
ZWR1 XREZ12
0.1095 0.1095
USD USD
1 1

So basically make the existing Row heading as Column heading, Please

advise
if this can be done. Been trying to do with pivot but can't seem to get it

to
work.

Really appreciate any help.
Thank YOU,
J




  #4   Report Post  
Max
 
Posts: n/a
Default

Pleased to hear that !
Thanks for the feedback
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Juan" wrote in message
...
Hello Max,
sorry for the late reply. Just wanted to say thanks for your help. This
should do the job.

Really appreciated.

juan



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
Convert data from rows to columns boksic Excel Discussion (Misc queries) 4 July 4th 05 11:40 AM
Get External Data - Insert Rows [email protected] Excel Discussion (Misc queries) 0 June 8th 05 12:53 PM
Pull Current Month's Data Out of List - Repost Karl Burrows Excel Discussion (Misc queries) 4 May 3rd 05 01:06 AM
How to use outline data (grouped rows) in a protected worksheet? biometris Excel Discussion (Misc queries) 0 January 17th 05 09:47 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 11: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"