+ Reply to Thread
Results 1 to 4 of 4

Transpose multiple duplicate rows into relevant column data

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    warrington, cheshire
    MS-Off Ver
    Excel 2010
    Posts
    2

    Transpose multiple duplicate rows into relevant column data

    Hello Everyone,

    Hopefully someone will be able to help with a data set I am trying to manipulate. I have searched this forum and the internet but not been able to find anything which matches my requirements.

    I am working on a data set which originates from an HTML page containing multiple repeated tables of data. I have manipulated this data in notepad++ to give me a tab separated text file which I can import into excel. The format is now a 2 column data set in the format:

    HeadingA DataA
    HeadingB DataB
    HeadingC DataC
    HeadingA DataA
    HeadingB DataB
    HeadingC DataC

    What I want to do is transpose the headings to a set of columns and populate with the relevant data. ie:

    HeadingA HeadingB HeadingC
    DataA DataB DataC
    DataA DataB DataC
    DataA DataB DataC

    It is important that each row represents the data from each original table of data from the HTML. If it helps to explain the data represents file details of individual files, with each table giving the details of an individual file, ultimately I want to be able to get it into a format whereby I can sort and filter by the fields such as date created etc.

    Hopefully I have explained well enough. Many thanks in advance

    Simon

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Transpose multiple duplicate rows into relevant column data

    Assum that the below data is present in A1:B6 Cell

    HeadingA DataA
    HeadingB DataB
    HeadingC DataC
    HeadingA DataA
    HeadingB DataB
    HeadingC DataC

    In D1 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In D2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag both the formula's down.. and right...

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    warrington, cheshire
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Transpose multiple duplicate rows into relevant column data

    Hi there Sixthsense,

    Thats fantastic and after tweaking the numbers, and my dataset slightly (there were some variations in headings I hadn't noticed before) it has worked perfectly.

    I'd be interested how the functions work if you have time to explain, I assume the first function in cell D1 is just looking for the matches in the column A data in order to just display the 1 heading. I'm not sure how the formula for D2 works though.

    many thanks for your help and the speedy response.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Transpose multiple duplicate rows into relevant column data

    Glad it helps you and thanks for the feedback and rep

    To know how the formula works, then refer the Post #6 of the below thread
    http://www.excelforum.com/excel-form...-workbook.html

+ 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