+ Reply to Thread
Results 1 to 4 of 4

Text to Columns problem

  1. #1
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    Text to Columns problem

    I have a problem with text to columns with data downloaded from our website. The address field is coming through with the whole address in a single cell with multiple rows.

    I have tried the following but all I get is the first row in the first colimn and the rest of the data:

    Text to Columns, Delimited, Other and ALT-0010
    Text to Columns, Delimited, Other and ALT-010
    Text to Columns, Delimited, Other and ctrl-j

    I have even created a macro to replace the hard returns with commas and then use comma as a delimiter but that still does the same.

    I have attached a file with two of the records (1 tab for the original data and one with the commas) and would appreciate it if someone could point out what I am missing here.

    Finally, I have tried this in both 2003 & 2010 and get the same issue in both.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Text to Columns problem

    those returns are a mixture of char(13) and char(10)
    Last edited by martindwilson; 06-14-2013 at 06:24 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    Re: Text to Columns problem

    Thanks, but that still does not seem to work. Could it be that there are other characters there as well and if so how would I be able to find and identify these?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Text to Columns problem

    well this seems to work
    =SUBSTITUTE(SUBSTITUTE(A2,CHAR(10),","),CHAR(13),",")
    fill down
    copy paste back as special values
    then use text to columns delimited choose comma , choose treat consecutive delimiters as one

+ 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