+ Reply to Thread
Results 1 to 3 of 3

Flat File to Tabular Data Set Conversion

  1. #1
    Registered User
    Join Date
    05-23-2005
    Posts
    13

    Question Flat File to Tabular Data Set Conversion

    Hello to all,

    Does anyone know how to convert a flat file into a tabular data set? In other words I am trying to separate data contained in the same row onto multiple rows so that I can categorize each line item separately for a pivot table. I know about the transpose feature but my file has thousands of lines.


    Below is how my data is set up:

    Name Client1 Client2 Client3
    Jane 33% 33% 33%
    John 33% 33% 33%
    Joe 33% 33% 33%
    Phil 33% 33% 33%



    Below is what I am trying to accomplish:


    Jane 33% Client1
    Jane 33% Client2
    Jane 33% Client3
    John 33% Client1
    John 33% Client2
    John 33% Client3
    Joe 33% Client1
    Joe 33% Client2
    Joe 33% Client3
    Phil 33% Client1
    Phil 33% Client2
    Phil 33% Client3



    I appreciate your help


    Thank you!
    Last edited by november678x; 05-14-2010 at 12:25 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Flat File to Tabular Data Set Conversion

    I know about the transpose feature but my file has thousands of lines.
    Have you actually tried using Transpose? The number of rows should not make a difference. However, if that is not working for you, the only option is to use VBA, in which case you will be best served by uploading a sample workbook.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Flat File to Tabular Data Set Conversion

    This macro may do it:
    Please Login or Register  to view this content.
    There's a sample workbook here along with other versions of these parse macros:

    Rows to Columns - Parse Macros
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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