+ Reply to Thread
Results 1 to 2 of 2

Delimited Data - Columns and Rows

  1. #1
    Registered User
    Join Date
    06-01-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Delimited Data - Columns and Rows

    I'm currently helping a colleague migrate data from one database to another, but am having difficulty in the process.

    The data in question currently in a word document and each database entry in 10 lines of text, separated by a semi-colon and then another 10 lines i.e.

    ;
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    ;
    1
    2
    3
    etc

    I'm trying to place this into an excel file in the following format:

    1 2 3 4 5 6 7 8 9 10
    1 2 3 4 5 6 7 8 9 10
    etc.

    Because I believe I'm essentially delimiting by two separate values, I'm unsure how to make this happen.

    Any help would be greatly appreciated. (Also happy to provide more information if this was unclear at all)

    Arch

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Delimited Data - Columns and Rows

    Difficult to be concise without an actual sample of the data. If I copy the data from your post, I get new line characters rather than paragraph marks in MS Word.

    So, what I would do, is (global) replace all the new line characters (^l) with a comma (,). I would then (global) replace all the semi-colons followed by a comma (;,) by a paragraph mark (^p).

    That should give you your data with each field separated by a comma and each record separated by a paragraph mark

    You may have an extra blank record at the beginning which you can ignore. And you may have an extra comma/field on the end of each record which you can ignore.

    Having done that, you can copy and paste the data from Word into Excel.

    Then use Text to Columns, comma delimited to split it into separate columns.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Importing delimited text into columns vice rows
    By Barchetta in forum Excel General
    Replies: 7
    Last Post: 07-16-2014, 07:27 PM
  2. coma delimited data in rows, Help
    By jayeomer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 04:46 PM
  3. [SOLVED] Organize large space delimited text file into appropriate rows and columns in excel.
    By rdlaner in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-29-2013, 02:25 PM
  4. [SOLVED] Multi columns of delimited data into rows
    By DWTK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 11:18 AM
  5. [SOLVED] comma and dash delimited data to rows
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2013, 11:01 AM
  6. delimited break out into rows instead of columns
    By Cakin in forum Excel General
    Replies: 2
    Last Post: 03-23-2011, 12:30 PM
  7. Convert space-delimited data to columns
    By rupz11 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-19-2009, 07:42 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