+ Reply to Thread
Results 1 to 3 of 3

Multi-record to single-line based on repeating line number sequence

  1. #1
    Registered User
    Join Date
    01-24-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Multi-record to single-line based on repeating line number sequence

    I have an Excel workbook that has two sheets. The first sheet has the data the way we received it and the second sheet has the format needed. The data did not come with a preexisting shell due to it being a special compilation.

    The first sheet has all data in multiple records based on GEOID AND 13 LNTITLES AND LNNUMBER 1 -13. The same GEOID repeats 13 times, one for each line number. There is a data field that has unique number for each line number for each GEOID (13,430 records) should be on;y about 1000 records, one per GEOID and they should be horizotal as fields.

    The format needed on sheet 2 should just be one instance of the GEOID under its own field with a header of GEOID. Then, 13 data categories based on one set of (LNTITLE) that should be separate fields. We only need the data tied to LNNUMBER 1,2 and 13 for each GEOID.

    I know how to transpose manually, but cannot take the time on a set of 13,430 records.
    Can anyone help with a VB maco in excel so I can see how this can be done, in case this comes up again.
    Had issues trying to attach the spreadsheet, can e-mail. Thanks in advance !
    Last edited by sew_texas; 01-25-2012 at 02:59 PM.

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

    Re: Multi-record to single-line based on repeating line number sequence

    Sure, post up a sample workbook with 4-5 sets of this raw data and a manual mockup of the desired results so we can see clearly all that is intended.

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    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!)

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

    Re: Multi-record to single-line based on repeating line number sequence

    deleted..... duplicate.

+ 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