+ Reply to Thread
Results 1 to 8 of 8

Extract a specific word from a list of cells

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    Bronx, NY
    MS-Off Ver
    365
    Posts
    15

    Extract a specific word from a list of cells

    Hi,

    I have a list of cells that I need to extract the shifts (day, eve, night). They words don't always appear in the same number of characters. Is there a formula for this? I copied some examples in the attached file. Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,353

    Re: Extract a specific word from a list of cells

    try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Extract a specific word from a list of cells

    You could use this, copied across and down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You need to change the shift descriptions to be consistent (for the night shift).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Extract a specific word from a list of cells

    If you just need 1 or 0, you can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-03-2013
    Location
    Bronx, NY
    MS-Off Ver
    365
    Posts
    15

    Re: Extract a specific word from a list of cells

    This worked perfectly thank you!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Extract a specific word from a list of cells

    What worked perfectly? You had a few options



    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    04-03-2013
    Location
    Bronx, NY
    MS-Off Ver
    365
    Posts
    15

    Re: Extract a specific word from a list of cells

    All worked but this formula gave me exactly what I wanted

    =IF(COUNTIF($B7,"*"&C$6&"*"),C$6,"")

    Thanks!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Extract a specific word from a list of cells

    You're welcome. Thanks for the rep.


    Ah, good to know. The solution, I guess, depends on what you want/need to do with the output.

+ 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] Extract specific number of characters if word in cell begins with specific text
    By Tapyr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2021, 06:29 PM
  2. [SOLVED] Extract row for specific cells with Criterias based on count of word
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2019, 09:07 AM
  3. How to extract one word after another specific word in excel
    By Benlj79az in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-15-2019, 02:16 PM
  4. [SOLVED] extract specific word from a description to a specific column
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2018, 10:32 AM
  5. Find / Extract Word & Words after a Specific Word
    By roseuz in forum Excel General
    Replies: 8
    Last Post: 07-05-2017, 01:07 PM
  6. How to select and extract cells containing any word from a list
    By Gabriel Valck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2012, 09:04 PM
  7. [SOLVED] Extract a single number after a specific word that shows up in some cells and not others
    By Trovis84 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-11-2012, 01:09 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