+ Reply to Thread
Results 1 to 5 of 5

help with formula to Extrac certain word from row

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    help with formula to Extrac certain word from row

    Dear All

    I was wondering whther someone can help me with the follwoing:

    I have a spreadsheet with list of names and whther they logged in or logge dout

    the names are in column a starting at a2 like below

    FFF logged in
    fff Logged out
    ggg logged in
    ggg logged out
    kkkkkkkkk logged in
    kkkkkkkkk logged out

    I need a formula to look at each row in column a and extract the word either logged in or logged out and copy the word logged in or logged out in column b.

    I have enclosed a sample spreadsheet, basically in column b2 it should say logged in and in column b3 should say logged out and so on

    If I can then delete the word logged in or logged out from column A for each name that will be really useful if not possible only the above would do.

    Thanks for help in advance
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: help with formula to Extrac certain word from row

    Try in B2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: help with formula to Extrac certain word from row

    Here is a VBA solution.

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: help with formula to Extrac certain word from row

    =TRIM(RIGHT(A2,LEN("logged out")))

    copy down

  5. #5
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: help with formula to Extrac certain word from row

    Thnak you so much for the quick response. Boh solutions worked perfectly

+ 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] Formula Help Pls - Search cell for WORD, return fields from WORD lookup
    By tomski777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2017, 12:02 AM
  2. [SOLVED] Extrac Number and Text in string
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-05-2017, 07:18 AM
  3. Excel formula switch first and Second word but keeps 3rd and remaining word in single cell
    By iwanttoexcelinexcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-29-2015, 04:22 PM
  4. extrac data from different sheets by sheet name and copy the workbook names
    By ripple in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-31-2013, 11:26 AM
  5. [SOLVED] Changing SUMIFS formula from word to word in a cell location
    By Car7os in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 06:43 AM
  6. Replies: 2
    Last Post: 08-16-2011, 12:08 PM
  7. Replies: 5
    Last Post: 11-18-2005, 06:10 PM

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