+ Reply to Thread
Results 1 to 3 of 3

String of airport codes (all 3 letters each) need to extract each code on diff cell

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    String of airport codes (all 3 letters each) need to extract each code on diff cell

    Hello, how do I extract every three letters representing an airport code from a string and put it on a seperate cell? Ultimately I need to count how many flights were taken and which flights are intl and which are domestic. I need these codes seperated from the string.

    An example of a string with airport codes seperated by a period is below. Can you show me the formula?

    Myr.clt.ord.nrt

    Then there is a string where the codes are seperated by both a space and a period. Can you please show me the formula?

    Gig.atl mex.fln. bna gig

    The there is a string just seperated by spaces can you please show me the formula?

    Clt mex clt


    Thanks so much!!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: String of airport codes (all 3 letters each) need to extract each code on diff cell

    Select Column, Ctrl+H, replace "." with " "

    Data->Text To Columns, Delimited, Choose Space, Hit Finish
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: String of airport codes (all 3 letters each) need to extract each code on diff cell

    Hi

    You should first convert your data so it is all in the same format

    The substitute function will replace all spaces with periods.

    If your data in in A1 then
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you use that formula to convert all your data and copy paste value to fix your data

    Then you can use the Text to Columns function under the data tab to move your data into separate cells
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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] I need to extract first 4 letters from a cell
    By cara164 in forum Excel General
    Replies: 4
    Last Post: 11-17-2014, 02:23 PM
  2. for each cell in range in wb1 manipulate string & paste to wb2 diff col same row
    By supermacBT in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2013, 12:44 PM
  3. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  4. [SOLVED] Extract two zip codes from one cell with lots of content
    By rtlloyd in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-22-2012, 04:36 PM
  5. extract letters from an alphanumeric string excel
    By noelcass in forum Excel General
    Replies: 4
    Last Post: 10-31-2011, 10:41 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