+ Reply to Thread
Results 1 to 4 of 4

Convert Rows data

  1. #1
    Juan
    Guest

    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. #2
    Max
    Guest

    Re: Convert Rows data

    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 <at>yahoo<dot>com
    ----
    "Juan" <Juan@discussions.microsoft.com> wrote in message
    news:EE13788C-F34E-4C86-A7E9-A08BA232CC6D@microsoft.com...
    > 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. #3
    Juan
    Guest

    Re: Convert Rows data

    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 <at>yahoo<dot>com
    > ----
    > "Juan" <Juan@discussions.microsoft.com> wrote in message
    > news:EE13788C-F34E-4C86-A7E9-A08BA232CC6D@microsoft.com...
    > > 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. #4
    Max
    Guest

    Re: Convert Rows data

    Pleased to hear that !
    Thanks for the feedback
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Juan" <Juan@discussions.microsoft.com> wrote in message
    news:F09B6CAC-4EB3-4911-9976-A6515CE58282@microsoft.com...
    > Hello Max,
    > sorry for the late reply. Just wanted to say thanks for your help. This
    > should do the job.
    >
    > Really appreciated.
    >
    > juan




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1