+ Reply to Thread
Results 1 to 4 of 4

First Word from a Text Field

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2007
    Posts
    2

    First Word from a Text Field

    I am looking for a way to get the first word from a text field, basically all the characters up until the first space.

    So, for example, if the target cell reads: "Highborn is a great iPhone game" it would return just the first word "Highborn"

    Thanks in advance and I just want to say I love this forum. I'm amazed that except for this one, which I hope isn't as big of a pain as it looks like to me, every Excel question that I've Googled has lead me to the answer here.

    -Joseph-
    www.working-as-designed.blogspot.com
    Last edited by Joseph4th; 10-29-2010 at 03:56 PM. Reason: Solved (thanks)

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: First Word from a Text Field

    Try this
    =LEFT(A1,FIND(" ",A1,1))

  3. #3
    Registered User
    Join Date
    10-27-2010
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: First Word from a Text Field

    That was quick and it certainly works a hell of lot better than what I was trying, guess I was over thinking it.

    Although it does not work if the target cell has only one word, I can get around by adding a space to the end of the word to those few exceptions since the target data doesn't matter. I just needed the list of first words for something I am doing outside of Excel.

    Thanks again.

    -Joseph-
    www.working-as-designed.blogspot.com

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: First Word from a Text Field

    You could also account for one-word cells using a formula, then not have to add spaces manually. For example:

    =IF(ISNUMBER(SEARCH(" ",A1)),LEFT(A1,FIND(" ",A1,1)),A1)

+ 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