+ Reply to Thread
Results 1 to 4 of 4

Remove text with REPLACE/FIND

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Remove text with REPLACE/FIND

    Hi Gang,

    Not sure if I am googling the right function.

    I have 1 one that name "Lastname, FirstName PRID 12345"

    Just wondering how I remove any text after the first name.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Remove text with REPLACE/FIND

    If your data is in Q27
    =LEFT(Q27,FIND("@",SUBSTITUTE(Q27," ","@",2))-1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: Remove text with REPLACE/FIND

    Awesome, thank you very very much

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Remove text with REPLACE/FIND

    happy to help and thanks for the feedback

+ 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] remove asterisks from text via find/replace or?
    By jimboryan in forum Excel General
    Replies: 2
    Last Post: 06-05-2016, 04:49 AM
  2. Marco/VBA to remove and replace group of text
    By nsarzyn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2015, 09:34 AM
  3. [SOLVED] Search through columns and find specific text and replace that text with header column
    By adamzee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2014, 11:59 PM
  4. Need VBA for concatenate, find and replace, then remove duplicate
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 03:43 PM
  5. How to use find/replace to remove back carriages BUT make exception to bullet points?
    By WoW_Excel_girl88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2012, 12:27 PM
  6. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  7. Remove a row using find and replace?
    By jonnyboy111 in forum Excel General
    Replies: 6
    Last Post: 09-29-2011, 02:32 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