+ Reply to Thread
Results 1 to 5 of 5

Text To Columns

  1. #1
    Registered User
    Join Date
    07-06-2006
    Posts
    8

    Text To Columns

    Hi All:

    I am having a problem with "Text to Columns". I have a column which includes information which is separated by "/". However, the "/" is not included in every row of the column. i.e. 1 row in the column contains "ADMIN1/232322" and that's easy to make into two columns, however in row 2 I have "232322". This information goes into the left column where "ADMIN1" would be, but I need it to go into the right column where "232322" would be.
    Is there a way of me getting this information into the correct column?

    I guess another question I have is maybe I can write an if then statement to add "/" to those cells which don't have them currently so that way I can split the columns up easily.

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Debrap29,

    To add the "/" at the beginning when it is not found you could use this.

    =IF(ISNUMBER(FIND("/",A1,1)),A1,"/"&A1)

    Copy down as needed. Then copy the result of your formulas and Paste Special>Values over your new text. Then you can use Text to Columns with the "/" as the delimiter.

    HTH

    Steve

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Debrap29,

    To add the "/" at the beginning when it is not found you could use this.

    =IF(ISNUMBER(FIND("/",A1,1)),A1,"/"&A1)

    Copy down as needed. Then copy the result of your formulas and Paste Special>Values over your new text. Then you can use Text to Columns with the "/" as the delimiter.

    HTH

    Steve

  4. #4
    Registered User
    Join Date
    07-06-2006
    Posts
    8
    Thanks Steve...that worked perfectly!!!

  5. #5
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    You're welcome and thanks for the feedback.

    Cheers,

    Steve

+ 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