+ Reply to Thread
Results 1 to 3 of 3

help extracting specific words using mid and find functions

  1. #1
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    help extracting specific words using mid and find functions

    if i have an address in 1 single cell for example, 355 Two Tree St. Los Angeles, CA 94000, how can i use excel to extract just the city? and lets just assume that the city always comes after the street, meaning there is no "blvd" or "ave",etc. and the comma is always after the city?

    this is what i have so far =MID(C8,SEARCH("st.",C8)+3,FIND(",",C8,FIND(" ",C8))-1-FIND("",C8))

    but it always returns with the city, state and the zip, how do i eliminate the state and zip?
    Last edited by arcticreaver; 09-13-2015 at 01:18 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: help extracting specific words using mid and find functions

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: help extracting specific words using mid and find functions

    omg, thank you!

    rep ya!

+ 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. [SOLVED] Macro 2010 to find words using an specific cel value
    By Fabmatos in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-23-2014, 10:11 AM
  2. Extracting Specific Words from string
    By janagan in forum Excel General
    Replies: 3
    Last Post: 08-23-2013, 12:57 AM
  3. [SOLVED] conditional formatting to find specific words.
    By emilyloz in forum Excel General
    Replies: 2
    Last Post: 07-31-2013, 10:24 AM
  4. [SOLVED] Macro to find specific words and compare with a cell
    By kinirobin in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-27-2012, 10:18 PM
  5. Extracting Specific Word Using Mid/Find
    By Stonesteel15 in forum Excel General
    Replies: 15
    Last Post: 05-21-2012, 10:11 PM
  6. [SOLVED] how do I find an average number of specific words in a column
    By cashgrfx in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-06-2005, 01:06 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