+ Reply to Thread
Results 1 to 5 of 5

Help required in Converting Multiple Rows to Columns and add Column Headers

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Help required in Converting Multiple Rows to Columns and add Column Headers

    I'm currently faced with a spreadsheet that has data formatted like this:

    [MEMBER]
    userid=ABC
    last_name=DEF
    first_name=ABD
    [email protected]
    telephone=xxxxxxxx
    fax=8888888
    title=Engineer
    department=abcd
    group=admin
    [MEMBER]
    userid=XYZ
    last_name=IJK
    access=0
    role= MMM
    group=consultant
    [MEMBER]
    userid=SSUSER
    access=1
    role=MMD
    group=ADS

    Every [MEMBER] is a new set of data that repeats itself. But might not have all the entries compared to other set.

    I need to figure out a way to get the data in below mentioned format.


    userid last_name first_name email_address telephone fax title department role group access
    ABC DEF ABD [email protected] xxxxxxxx 8888888 Engineer abcd admin
    XYZ IJK MMM consultant 0
    SSUSER MMD ADS 1

    Any help is greatly appreciated.

    Regards,
    Swaroopa

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Help required in Converting Multiple Rows to Columns and add Column Headers

    Hi,

    Attached is my solution. Hope this helps.
    Attached Files Attached Files
    Last edited by xlbiznes; 03-07-2013 at 12:52 PM.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help required in Converting Multiple Rows to Columns and add Column Headers

    Thanks Xlbiznes.. It worked perfectly.

    Regards,
    Swaroopa.

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help required in Converting Multiple Rows to Columns and add Column Headers

    I have another requirement where the initial data is in the below format.
    dia 1.JPG

    Where as I want the data in below mentioned format.

    dia 2.JPG

    Regards,
    Swaroopa

  5. #5
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Help required in Converting Multiple Rows to Columns and add Column Headers

    Hi,

    Attached is your solution to extract data in the new format. You need to change the values in the array (col_headers) to suit your requirement.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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