+ Reply to Thread
Results 1 to 3 of 3

Text and extracting certain words from formula

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Text and extracting certain words from formula

    Hi there

    I have a range of codes in sheet name "Airport" column I (I2:I350).

    They appear like this: JFK-IKA-DOH or DOH-SGN-PNH-SGN-DOH

    In sheet name "Lookup" column A2:A285, I have what each 3 letter code means (it's airport code).

    WHat formula can I use so for each code in I2:I350, it matches the "2nd" 3 digit code with what is in the "Lookup column range A2:A285

    Can anyone help?

    THank you

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Text and extracting certain words from formula

    Can you post a SMALL sample file and show us what results you expect?

    20 rows and a few columns worth of data is plenty. We don't need 100's of rows and dozens of columns of data. That just makes it harder to find what we're looking for!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Text and extracting certain words from formula

    try this , if my understanding is correct, assuming A2: A285 has the matching airport code and column B has the airport name
    put this formula into j2 and fill down.

    =VLOOKUP(MID(I2,5,3),Lookup!A2:A285,2,FALSE)

+ 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] Formula to delete words from text only if text in over certain amount of characters
    By erikpaulsen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2015, 05:21 PM
  2. Extracting Words
    By JakeMann in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-10-2015, 12:53 PM
  3. Replies: 3
    Last Post: 07-31-2014, 02:07 PM
  4. [SOLVED] Extracting two words from a string
    By HM001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-14-2013, 07:15 AM
  5. Replies: 3
    Last Post: 12-11-2011, 10:45 AM
  6. Extracting words from a cell
    By merryperson in forum Excel General
    Replies: 2
    Last Post: 04-28-2008, 11:19 AM
  7. Extracting just the color words
    By Mariela in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2005, 05:06 AM

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