+ Reply to Thread
Results 1 to 12 of 12

Text to Column Not Working

  1. #1
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Text to Column Not Working

    Hello

    Please check the attached spreadsheet

    I am trying to split the addresses in street name, city, state and ZIP but when I am trying to do a Text-to-Column (using comma as the delimiter), only the first row of the address is appearing

    Kindly advise

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Text to Column Not Working

    Are you highlighting the entire column?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Text to Column Not Working

    Update - I have figured out the issue.

    Solved the formatting problem with the following code

    Please Login or Register  to view this content.
    However, the city name is now stuck to the street name like 2361 Camino PintoresSanta Fe, NM 87505-5290 and I am not sure how I can split the city name (Santa Fe in this case to a new column)

    More such address examples are

    PO Box 3170Albuquerque, NM 87190-3170
    5919 Tierra Viva Pl NWAlbuquerque, NM 87107-5275
    924 Park Ave SW Ste CAlbuquerque, NM 87102-3023
    405 W Congress St Ste 4800Tucson, AZ 85701-5040
    PO Box 30181Albuquerque, NM 87190-0181

    Kindly advise

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,977

    Re: Text to Column Not Working

    There is a line break in each of the cells, which text to columns can't handle.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,977

    Re: Text to Column Not Working

    Why didn't you do the substitution with a space " " instead of a blank ""?

  6. #6
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Text to Column Not Working

    Quote Originally Posted by AliGW View Post
    Why didn't you do the substitution with a space " " instead of a blank ""?
    Hi AliGW

    Thanks a lot for the tip. I am not good with reading codes and so didn't think of replacing the blank with a space. After I use a space, the cells look much neat but I am still not sure how I can separate the city name in a column as there is no delimiter before the city name, except for space, which would split up all the words in the address
    This is how the addresses look now

    2361 Camino Pintores Santa Fe, NM 87505-5290
    PO Box 3170 Albuquerque, NM 87190-3170
    5919 Tierra Viva Pl NW Albuquerque, NM 87107-5275
    924 Park Ave SW Ste C Albuquerque, NM 87102-3023
    405 W Congress St Ste 4800 Tucson, AZ 85701-5040
    PO Box 30181 Albuquerque, NM 87190-0181
    2931 Nebraska St Sioux City, IA 51104-3654
    760 N Motel Blvd Ste A Las Cruces, NM 88007-4169
    PO Box 1750 Bernalillo, NM 87004-1750
    131 M St NE Washington, DC 20507-0003
    PO Box 25102 Santa Fe, NM 87504-5102
    4022 Flamingo Dr El Paso, TX 79902-1314
    3200 Carlisle Blvd NE Ste 219 Albuquerque, NM 87110-1699
    PO Box 8814 Santa Fe, NM 87504-8814
    Could you please give an idea how I can split the city name in a new column?

    Thanks again

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,977

    Re: Text to Column Not Working

    I am so sorry - I meant to say substitute the line break character with a comma, then you can use the comma as planned as the delimiter.

  8. #8
    Registered User
    Join Date
    12-21-2016
    Location
    Lithuania
    MS-Off Ver
    2010
    Posts
    4

    Re: Text to Column Not Working

    Hello, your text does not match text written in formula box, that is your problem i guess.

    aaaaaaaaaa.png'

    I'm able to respond in real time to you until its solved.

  9. #9
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Text to Column Not Working

    Quote Originally Posted by AliGW View Post
    I am so sorry - I meant to say substitute the line break character with a comma, then you can use the comma as planned as the delimiter.
    No problem, AliGW. I replaced the blank with a comma and it worked just like the way I wanted. Thank you sooo much!!

  10. #10
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Text to Column Not Working

    Quote Originally Posted by ArnoldMS View Post
    Hello, your text does not match text written in formula box, that is your problem i guess.

    Attachment 494521'

    I'm able to respond in real time to you until its solved.
    ArnoldMS - thank you so much for your help. I was able to solve the issue using the following code

    Please Login or Register  to view this content.
    I appreciate you willing to stay with me till the issue was resolved.

    You guys are the best!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,977

    Re: Text to Column Not Working

    You're welcome!

    For future reference: don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    Please mark the thread as solved using the thread tools at the top of the thread. Thanks!

  12. #12
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Text to Column Not Working

    Point noted, AliGW.

    Thanks again

+ 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. Text stacked in one cell - text to columns not working
    By SirLosealot in forum Excel General
    Replies: 2
    Last Post: 10-08-2015, 06:58 AM
  2. Filter column by text, then export column to new workbook, replace searched text with new.
    By Headhunter234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2015, 07:48 AM
  3. [SOLVED] Setting individual column width sizes for multi column listbox with VB2011 Mac not working
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 01-26-2014, 06:19 PM
  4. Replies: 12
    Last Post: 01-08-2014, 11:28 AM
  5. Need copy the column d instead of column b, macro working fine for column b
    By audax48 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2012, 04:32 PM
  6. code to find text, offset 1 column and paste to new workbook not working
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2011, 07:55 AM
  7. SUMPRODUCT not working due to text in column
    By damiensmith212 in forum Excel General
    Replies: 3
    Last Post: 04-24-2009, 12:29 PM

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