+ Reply to Thread
Results 1 to 9 of 9

Text to Columns

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Johnstown PA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Text to Columns

    Help! I imported a list of addresses from Google Maps. The column containing street address also contains distance separated by a vertical line, ex. (526 Main Road | 33m), the last portion of which I need to eliminate. The list is very long. The text to columns function does not seem to be a solution. Would a macro work for this?

  2. #2
    Registered User
    Join Date
    08-19-2012
    Location
    Johnstown PA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Text to Columns

    Resolved. Discovered the vertical line key and used it in text to columns.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Text to Columns

    Or you can use formula

    =TRIM(LEFT(SUBSTITUTE(A1," |",REPT(" ",255)),255))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Text to Columns

    Why don't you use a formula to achieve this....

    Assuming that you have address in cell A1, then use the following formula to return the desired portion of the address.

    Please Login or Register  to view this content.
    Is this what you want?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    08-19-2012
    Location
    Johnstown PA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Text to Columns

    Thanks, but for some reason kept getting circular error.

  6. #6
    Registered User
    Join Date
    08-19-2012
    Location
    Johnstown PA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Text to Columns

    Thanks, but for some reason could not get this to work.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Text to Columns

    Which formula did you use? There is no point of circular reference if you place the formula in B1. If you place the formula in A1 itself (which you are not supposed to do), you will get the circular reference warning.

    After importing the data in sheet in col. A, if you want the changed address in the col. A itself, you will need a macro in that case.

  8. #8
    Registered User
    Join Date
    08-19-2012
    Location
    Johnstown PA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Text to Columns

    Aha! The key here is placing the formula in B1, not A1 as I did. Your formula works just fine, as does the one from AlKey. Thank you both.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Text to Columns

    Glad to help you. Thanks for the feedback and the Rep.

+ 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. pull text from 2 columns based on finding text in other columns
    By jimcuk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-03-2013, 09:21 AM
  2. Replies: 1
    Last Post: 03-09-2013, 02:55 PM
  3. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 AM
  4. Formula to align two columns with nearly similar text and attached numeric columns
    By Benefits Recon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2012, 12:03 AM
  5. Linking text columns with text and data columns
    By Edd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-17-2005, 01:06 PM

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