+ Reply to Thread
Results 1 to 3 of 3

Convert data from vetical headers to horizontal (need more the transpose function)

  1. #1
    Registered User
    Join Date
    06-09-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2007
    Posts
    2

    Post Convert data from vetical headers to horizontal (need more the transpose function)

    Hi Everyone, I have given up on this one by myself so hopefully one of you can be my hero. Basically I have a file that has data in 2 columns. First column is technically the header and 2nd column is data. This repeats itself many times in the file and each record is separated by "END OF ENTRY" then the next record begins. This vertical file is killing me because there are over 65,000 records and its not Access or Excel friendly. I to convert this information into a flat file format or crosstab that I can load into Access. Below is a sample on a small scale.

    CONVERT THIS

    CODE DETAIL
    RES 1[98]
    TRM CFGRC09
    MRC 24564323245
    AMT 9.44
    ----END OF ENTRY ----
    RES 1[98]
    TRM CFGRC09
    MRC 345267665
    AMT 10.54
    ----END OF ENTRY ----
    RES 1[98]
    TRM CFGRC09
    MRC 453322567
    AMT 45.87
    ----END OF ENTRY ----

    TO THIS
    RES TRM MRC AMT
    1[98] CFGRC09 24564323245 9.44
    1[98] CFGRC09 345267665 10.54
    1[98] CFGRC09 453322567 45.87

    Thanks a bunch if there is a solution.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert data from vetical headers to horizontal (need more the transpose function)

    Hi, and welcome to the forum

    With Code in A1, Detail in B1 and the Data starting in A2:B2

    C2: copied down and across to column F

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-09-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2007
    Posts
    2

    Re: Convert data from vetical headers to horizontal (need more the transpose function)

    Hi Richard,
    It works for getting the column headers but the subsequent data does not come through as records (row).
    Results:
    RES TRM MRC SEQ
    TRM MRC SEQ RES
    MRC SEQ 0 0
    0 0 0 0

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Transpose vertical data into horizontal records vba
    By nolans18 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-27-2014, 08:50 PM
  2. Transpose Vertical Data to Horizontal
    By Randu555 in forum Excel General
    Replies: 5
    Last Post: 04-18-2013, 05:05 PM
  3. Replies: 1
    Last Post: 10-03-2012, 02:46 PM
  4. [SOLVED] convert vertical to horizontal (without Transpose)
    By timtim89 in forum Excel General
    Replies: 6
    Last Post: 03-28-2012, 10:50 AM
  5. Transpose names from horizontal to vetical
    By zbor in forum Excel General
    Replies: 8
    Last Post: 09-21-2009, 09:35 AM

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