+ Reply to Thread
Results 1 to 2 of 2

Extracting address information from one cell

  1. #1
    Forum Contributor
    Join Date
    03-21-2012
    Location
    New York NY
    MS-Off Ver
    2010
    Posts
    113

    Extracting address information from one cell

    I need a formula that will extract the address, city, state, zip from one cell and paste into another. Different ones in each cell but are always the 3rd line of words in each cell. For example,

    1512 Long St
    Atlanta GA 30056
    Steve H. Baseball Field

    I want everything except "Steve H. Baseball Field" to be moved. All 3 lines above are in one cell together.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Extracting address information from one cell

    So you want Address, City, State, and Zip in 4 separate cells?

    If so, try these (Assuming that the string is in A2):


    Address (B2) =LEFT(A2,FIND(CHAR(10),A2)-1)

    City (C2) =SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,CHAR(10),REPT(" ",100)),100,100))," "&D2&" "&E2,"")

    State (D2) =MID(A2,FIND(E2,A2)-3,2)

    Zip (D2) =RIGHT(TRIM(MID(SUBSTITUTE(A2,CHAR(10),REPT(" ",100)),100,100)),5)

+ 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. Extracting information out of a cell
    By roxdrob01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2017, 10:57 PM
  2. [SOLVED] Extracting specific information from address in cell
    By sammer024 in forum Excel General
    Replies: 3
    Last Post: 08-31-2017, 04:17 PM
  3. [SOLVED] Extracting postcode from a cell which contains address
    By Rob8489 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-08-2016, 09:51 AM
  4. Replies: 4
    Last Post: 08-14-2013, 12:02 PM
  5. Replies: 1
    Last Post: 02-19-2010, 11:21 AM
  6. Extracting column from cell address
    By bdn435 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2007, 03:30 PM
  7. Extracting a portion of an address from cell
    By JR55415 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2005, 04:14 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