+ Reply to Thread
Results 1 to 2 of 2

Identify the words or words in a cell that match a list on another sheet

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Identify the words or words in a cell that match a list on another sheet

    Hello all,

    I am trying to parse the city out of an address, but the data i receive is not very stable, an example of the 10,000 rows is below.

    891 Mt Eden Road, , Auckland,
    9 york road, haruru falls, paihia, 0200
    Beach Road, mangonui, mangonui, 0494
    Paramount Plaza, Tikipunga, Whangarei, 0112
    26 Ti Rakau Drive, Botany, Auckland, NZ
    26 Ti Rakau Drive, Botany, Auckland, NZ
    State Highway1 Road4, Cape Reinga, Far North,
    62 Glenmall Road, Glen Eden, Auckland, New Zealand
    68 Moore Street, Northcote, Auckland, NZ
    68 Moore Street, Northcote, Auckland, NZ
    178 ALBANY HIGHWAY, ALBANY, AKLD,
    178 ALBANY HIGHWAY, ALBANY, AKLD,
    CNR LYNN & BAYVIEW RD, GLENFIELD, AKLD,
    11 ELIZABETH STREET, , WARKWORTH, NZ
    Corner of Clyde & Anzac Roads, , Browns Bay,
    208 COATESVILLE RIVERHEAD HIGHWAY, , Coatsville,
    208 COATESVILLE RIVERHEAD HIGHWAY, , Coatsville,
    6 CORONATION ROAD, GLENFIELD, AUCKLAND,
    135 East Coast Road, Crown Hill, Auckland,
    57 Forge Road, , Silverdale,
    156 Birkdale Road, North Shore, Auckland, New Zealand
    23 Chartwell Avenue, Glenfield, Auckland,

    I have a list of all the cities that may come through and i would like to have a forumla that identifies the city in the column next to it. I can think of ways to start with VBA but i would really like to have this done with a formula as others will be using it too.

    i have tried combinations of match, find, mid, but i cnt for the life of me work out what to do never mind how to do it!

    any suggestions of what route to try next?

    Thankyou!

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,443

    Re: Identify the words or words in a cell that match a list on another sheet

    Hi,

    All of your examples have the same format such that a simple TextToColumns usiing the comma as a delimiter will parse the strings putting the city in the 3rd column. Only you can say whether all the data is consistent. You could easily check by using a helper column to count the number of commas in each string.
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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: 5
    Last Post: 09-02-2014, 03:49 PM
  2. Delete words within phrase from list of words
    By El Cosmos in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-04-2014, 02:18 PM
  3. Replies: 3
    Last Post: 08-14-2013, 10:38 AM
  4. Help! Count how many words in a sentence match a dictionary of words
    By sonyaelis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2013, 05:31 AM
  5. Match part of cell to a list of words - Does not work with large data set
    By sdsu2010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 06:41 PM
  6. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  7. Replies: 1
    Last Post: 04-04-2012, 07:15 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