+ Reply to Thread
Results 1 to 2 of 2

Is there a better way to extract first word from cell after specific text

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    West Bromwich, England
    MS-Off Ver
    Excel 2007 & 2013 in Azure
    Posts
    83

    Is there a better way to extract first word from cell after specific text

    Hi All,

    I appreciate there are several posts similar to this, but I can't find one specific to my needs, which is to extract the first word after specific text.

    The position of the specific text can change both in it's first character and its word number, but the text I need is always the first word after the specific text. The first word needed can also vary in length.

    If I have the following text in cell A1: "[Area: 1] [Unit: C1234 Unit Address] [Week: W:33 P:7 Y:2017]"

    and the specific text is: "Unit:"

    I can extract the first word ("C1234") using the following formula :

    Please Login or Register  to view this content.
    I'm always looking to improve, so as this uses the SEARCH function 4 times I was just wandering if there was a better/more efficient way still using a single formula?

    Thanks

    Tooley

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Is there a better way to extract first word from cell after specific text

    if such a string
    =MID(A1,FIND(":",A1,7)+2,5)

+ 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. Find / Extract Word & Words after a Specific Word
    By roseuz in forum Excel General
    Replies: 8
    Last Post: 07-05-2017, 01:07 PM
  2. Formula to extract word out of text string in cell
    By Thonkhan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2014, 02:00 AM
  3. Replies: 3
    Last Post: 07-12-2013, 09:17 AM
  4. Extract word ending with specific text
    By s_anr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2013, 09:33 PM
  5. Extract last word from multiple-line text cell
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-04-2013, 09:26 PM
  6. Extract specific word from a text string
    By krjoshi in forum Excel General
    Replies: 10
    Last Post: 01-19-2012, 02:00 PM
  7. Extract specific text from a cell
    By Offeror in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2011, 05:07 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