Results 1 to 1 of 1

Problem with TextToColumns parsing comma, overwriting column

Threaded View

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    1

    Problem with TextToColumns parsing comma, overwriting column

    I have numerous TXT files I want to merge into one workbook. Each TXT is tab-del, 42 columns wide and needs to be formatted as text. I have a script to perform this function but I run into a problem.

    The problem is that whenever a comma is parsed every subsequent field in that row is overwritten to the cell after where the comma was found and the rest of the text in the field where the comma was found is removed.

    For example, given the following (assume here the four space characters are each tabs)...

    Field 1 Field 2 Field 3, some text Field 4 <Field 5 is null>

    ...Field 1 and 2 are correct but Field 3 only contains "Field 3" (no comma, no subsequent text). The next field in the row is blank. I'm assuming its data was overwritten by the null data in field 5. This is quite problematic for me as the data I'm parsing contains a lot of literal text with punctuation.

    Can someone please take a look at the attached workbook and be able to tell me what I'm doing wrong here?
    Attached Files Attached Files

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