Extract two letter words from a column (Excel)

Discussion in 'Databases' started by furca, Sep 29, 2010.

  1. #1
    Anyone know how I can quickly extract JUST two letter words from an excel column?

    EG: If the column contains these:

    this is entry one
    entry two
    this is entry fivce
    entry three

    I can easily sort it so entry two and entry three are on top, or remain - and the entries bigger than 2 words get sorted to the bottom or deleted?
     
    furca, Sep 29, 2010 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Add to each row a new cell that counts the number of spaces in the cell you want to sort by. Use this formula in that new cell to count the spaces:

    =1 + SUM(LEN([CELL])-LEN(SUBSTITUTE([CELL]," ","")))/LEN(" ")
    PHP:
    Replace '[CELL]' with a reference to the cell you want to count the spaces in. This will create a column of numbers that you can then sort by.
     
    plog, Sep 30, 2010 IP
  3. furca

    furca Well-Known Member

    Messages:
    1,478
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Thank you so much. You have saved me a lot of time! I really do appreciate it.
     
    furca, Oct 3, 2010 IP