+ Reply to Thread
Results 1 to 5 of 5

Convert 1 row of data to columns

  1. #1
    Registered User
    Join Date
    08-25-2005
    Location
    Johannesburg
    Posts
    2

    Convert 1 row of data to columns

    Hi,

    My spreadsheet has 4 columns of data but I need to convert just the 1 column into a row.

    Example:

    Column A has the date
    Column B has the 30 minute intervals starting from 09:00 to 17:00
    Column C has the 5 different stocks (ABL, AGL; ANG; BAW;SLM) I want data for but each stock is listed multiple time per interval
    Column D has the actual values of the stocks at the diffferent intervals

    I need to convert column C into 5 columns but retain the other columns data applicable to the various stocks so its easy to view in a table-like format.

    Using copy/paste/tranpose feauture in Excel is not my solution so it has to be an array formula (I think!).

    Please help.

    Thanks
    Mohoney

  2. #2
    Executor
    Guest

    Re: Convert 1 row of data to columns

    Hi Mohony,

    I suggest the following appraoch:

    Using columns F:J for the split info.
    F1 = "ABL"
    G1 = "AGL"
    and so on

    For F1 use the formula
    'If($C2=F$1,F$1,"")

    And copy this formula to the columns F:J for als the used rows.

    HTH.

    Wouter.


  3. #3
    Mohoney
    Guest

    Re: Convert 1 row of data to columns

    Hi Wouter,

    Thanks...it did help to some extent.

    Much obliged.
    Mohoney

    "Executor" wrote:

    > Hi Mohony,
    >
    > I suggest the following appraoch:
    >
    > Using columns F:J for the split info.
    > F1 = "ABL"
    > G1 = "AGL"
    > and so on
    >
    > For F1 use the formula
    > 'If($C2=F$1,F$1,"")
    >
    > And copy this formula to the columns F:J for als the used rows.
    >
    > HTH.
    >
    > Wouter.
    >
    >


  4. #4
    Registered User
    Join Date
    08-25-2005
    Location
    Johannesburg
    Posts
    2

    Convert 1 row of data to columns

    Hi Wouter,

    Perhaps if I give you an example of what I have and what I require:

    Currently, my SS displays data as:

    A B C D
    date interval code Quantity
    May 11 2005 09h00-09h10 AGL 5750
    May 11 2005 09h10-09h20 AGL 800
    May 11 2005 09h20-09h30 AGL 10121
    May 12 2005 09h00-09h10 AGL 3333
    May 12 2005 09h10-09h20 AGL 1421
    May 12 2005 09h20-09h30 AGL 8364
    May 11 2005 09h00-09h10 BAW 16935
    May 11 2005 09h10-09h20 BAW 6000
    May 11 2005 09h20-09h30 BAW 12225
    May 12 2005 09h00-09h10 BAW 22527
    May 12 2005 09h10-09h20 BAW 34858
    May 12 2005 09h20-09h30 BAW 21659

    .....and what I require is.....

    A B C D
    date interval AGL BAW
    May 11 2005 09h00-09h10 5750 16935
    May 11 2005 09h10-09h20 800 6000
    May 11 2005 09h20-09h30 10121 12225
    May 12 2005 09h00-09h10 3333 22527
    May 12 2005 09h10-09h20 1421 34858
    May 12 2005 09h20-09h30 8364 21659

    Hope you can assist with this.

    Much obliged,
    Mohoney

  5. #5
    Mohoney
    Guest

    Re: Convert 1 row of data to columns

    Hi Wouter,

    Perhaps if I give you an example of what I have and what I require:

    Currently, my SS displays data as:

    A B C
    D
    date interval code Quantity
    May 11 2005 09h00-09h10 AGL 5750
    May 11 2005 09h10-09h20 AGL 800
    May 11 2005 09h20-09h30 AGL 10121
    May 12 2005 09h00-09h10 AGL 3333
    May 12 2005 09h10-09h20 AGL 1421
    May 12 2005 09h20-09h30 AGL 8364
    May 11 2005 09h00-09h10 BAW 16935
    May 11 2005 09h10-09h20 BAW 6000
    May 11 2005 09h20-09h30 BAW 12225
    May 12 2005 09h00-09h10 BAW 22527
    May 12 2005 09h10-09h20 BAW 34858
    May 12 2005 09h20-09h30 BAW 21659

    ......and what I require is.....

    A B C
    D
    date interval AGL BAW
    May 11 2005 09h00-09h10 5750 16935
    May 11 2005 09h10-09h20 800 6000
    May 11 2005 09h20-09h30 10121 12225
    May 12 2005 09h00-09h10 3333 22527
    May 12 2005 09h10-09h20 1421 34858
    May 12 2005 09h20-09h30 8364 21659

    Hope you can assist with this.

    Much obliged,
    Mohoney
    -------------------------------------------------------------------------

    "Executor" wrote:

    > Hi Mohony,
    >
    > I suggest the following appraoch:
    >
    > Using columns F:J for the split info.
    > F1 = "ABL"
    > G1 = "AGL"
    > and so on
    >
    > For F1 use the formula
    > 'If($C2=F$1,F$1,"")
    >
    > And copy this formula to the columns F:J for als the used rows.
    >
    > HTH.
    >
    > Wouter.
    >
    >


+ 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