+ Reply to Thread
Results 1 to 6 of 6

Help Parsing 2 lines of addresses in one cell

  1. #1
    Registered User
    Join Date
    03-27-2014
    Location
    The Dark Side
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help Parsing 2 lines of addresses in one cell

    I have the attached spreadsheet that has 176K of addresses. The cell contains data that is actually Address Line 1 and Address Line 2. I need to separate these. I BELIEVE there is an unprintable character that separates most of them -- maybe a CRLF or something like that.


    Please see the attachment for examples...

    Thanks folks! Cust Address with unprintable characters.xlsx

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Help Parsing 2 lines of addresses in one cell

    try this...put these in and copy down...this does not take into account cells that don't have the CHAR(10)....Linefeed, by the way....

    in C2

    Please Login or Register  to view this content.
    in D2

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Help Parsing 2 lines of addresses in one cell

    in C2:
    =LEFT(B2,SEARCH(CHAR(10),B2,1)-1)
    in D2
    =SUBSTITUTE(B2,C2,"")
    and copy down.

    I'm not sure about row 1 - I dont think that has a hidden character.

  4. #4
    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,754

    Re: Help Parsing 2 lines of addresses in one cell

    When this data is separated, where do you want the first line or second line to appear.

    How do you want the data to appear post removal?
    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

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Help Parsing 2 lines of addresses in one cell

    Thinking about it, you might be able to do this with the texttocolumns tool, select delimited, other and then in the box for other put ctrl+j to get the linefeed character.

    That would help deal with the entries without a linefeed better as well I think.

  6. #6
    Registered User
    Join Date
    03-27-2014
    Location
    The Dark Side
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help Parsing 2 lines of addresses in one cell

    Perfect -- I will apply this to the other 175K! You Rock!

+ 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. Replies: 8
    Last Post: 08-01-2013, 10:17 PM
  2. Parsing addresses
    By nredhead in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2013, 09:21 PM
  3. Replies: 2
    Last Post: 10-19-2012, 12:23 PM
  4. Replies: 1
    Last Post: 12-15-2011, 10:42 PM
  5. Macro to consolidate addresses from 3 lines to 1 row
    By mikeyt354 in forum Excel General
    Replies: 6
    Last Post: 05-03-2010, 02:16 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