+ Reply to Thread
Results 1 to 3 of 3

Extracting text from a cell entry

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    6

    Extracting text from a cell entry

    I have column with thousands of data entires e.g.

    AAL
    AAR
    AAR
    ABJ
    ABJ
    ABJ
    ABJ
    ABJ
    ABV

    These are airport codes if you're really interested!

    Some of the entries have an apostrophe in front of the three character code i.e. in the formula window it may actually appear as 'AAL Other entries sometimes have two or more blank spaces after them.

    Is there a way I can just extract the three digit text string from these entries so that I can create a new column with just the three leter codes and no spaces or apostrohe's?

    Many Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    If the codes are in Column A, beginning in A2:

    B2: =TRIM(A2)

    Copy that formula down
    Select from B2:B1000 (or the last cell of the list)
    Edit>Copy
    Edit>Paste Special>Values

    Does that help?

    Ron

  3. #3
    Registered User
    Join Date
    06-29-2005
    Posts
    6
    Thanks Ron, that worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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