Log in  \/ 
Register  \/ 


How to remove first / last word from text string in cell?


If you have a column of text strings in your worksheet, and you need to remove the first or the last word from the text string in cell as following screenshot shown. Excel doesn’t provide a direct way for you, but, with the following formulas this tutorial show, this problem will be solved as soon.

Remove first or last word from text string with formulas

Split Cell values into multiple columns and rows by specific separator:

With Kutools for Excel’s Split Cells utility, you can quickly split text string in a cell into multiple columns or rows  by space, comma, new line and any other separators you specified.

doc-split-cells-1 1

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!

arrow blue right bubble Remove first or last word from text string with formulas

The following formulas may help you to delete the first or last word from the text cell, please do as this:

Remove the first word from text string:

1. Please enter this formula into a blank cell where you want to put the result: =RIGHT(A2,LEN(A2)-FIND(" ",A2)) (A2 is the cell which has the text string you want to remove the first word), see screenshot:


2. And then drag the fill handle down to the range that you want to apply this formula, and the first words have been removed from the cells, see screenshot:


Remove the last word from text string:

To remove the last word from the cell, please copy and paste this formula: =LEFT(TRIM(A2),FIND("~",SUBSTITUTE(A2," ","~",LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))))-1), and then drag the fill handle over to the range that you want to contains this formula, and all the last words have been deleted from the cell. See screenshot:


Related article:

How to remove first, last or certain characters from text in Excel?

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Jacqueline · 18 days ago
    Thank you so much for sharing the formula, very helpful!
  • To post as a guest, your comment is unpublished.
    Muhammad Talha · 8 months ago
    Retention Payable - Tooba Aluminium & Glass Works. L.L.C

    I want to remove (retention payable - ) from the above sentence

    what I will do I want to save my time
    • To post as a guest, your comment is unpublished.
      Suman · 4 months ago
      Just do find and replace if you just want to remove the same word from the sheet
      saves time
    • To post as a guest, your comment is unpublished.
      skyyang · 8 months ago
      Hello, Muhammad,
      To solve your problem, please apply the following formula:

      =MID(A1,1+FIND("~",SUBSTITUTE(A1," ","~",3)),255)

      Please try it, hope it can help you!
  • To post as a guest, your comment is unpublished.
    Mark K · 11 months ago
    I have two strings, one works fine removing the last word (the file size) but one does not (I think due to double space in the string.)

    =LEFT(TRIM(A2),FIND("~",SUBSTITUTE(A2," ","~",LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))))-1)

    Cell A2 contents: D:\Sowdeswari\BIO-LAB-DSM-03\03-Jan-2019\Config\SecEvent.Evt 01/01/2019 5963776
    Result: D:\Sowdeswari\BIO-LAB-DSM-03\03-Jan-2019\Config\SecEvent.Evt 01/01/2019 (This is correct)

    Cell A2 contents: D:\laptop_swap\win_account\Desktop\ !!!Docs\FORM-00538.pdf 18/01/2018 298032
    Result: D:\laptop_swap\win_account\Desktop\ !!!Docs\FORM-00538.pdf (this is not correct, but works when I remove one of the spaces before the "!!!" in the string)

    All help appreciated. It's a large file and there are a few errors but if I can fix this I can probably work out the other ones.
  • To post as a guest, your comment is unpublished.
    Mick H · 1 years ago
    Wow, thank you, worked perfectly and saved a lot of time.
  • To post as a guest, your comment is unpublished.
    marlonparinacruz@gmail.com · 1 years ago
    may i ask you how to separate using formula the 4-digit numbers?
    1234 · Bike:5678 · Tires Improvement; :6767
  • To post as a guest, your comment is unpublished.
    megz · 1 years ago
    AMINODDIN MAMONDIONG/HASSANA AMPUAN <<--- i want to separate this two names damn! let me try
  • To post as a guest, your comment is unpublished.
    ktsnj · 1 years ago
    Worked perfectly! Thank you very much.
  • To post as a guest, your comment is unpublished.
    JAMES · 4 years ago
  • To post as a guest, your comment is unpublished.
    vickyf. · 4 years ago
    my problem is how to extract these names into first name , middle initial followed by last name.

    Roxas, Richard Jr. Alvarez
    Chavez, Ryan James Galareta
    Legaspi, Christian Arnaiz
    Jimenez, Johnray Del Castillo
    De Chavez, Rosalyn David
    Dela Rosa, Ana Joy Ramirez
    Manolo, Ma. Ana Santos
    Santillan, Jeneth Umali

    Result should be:

    Richard A. Roxas Jr.
    Ryan James G. Chavez
    Christian A. Legaspi
    Johnray D. Jimenez
    Rosalyn D. De Chavez
    Ana Joy R. Dela Rosa
    Ma. Ana S. Manolo
    Jeneth U. Santillan
  • To post as a guest, your comment is unpublished.
    Michael M. · 4 years ago
    I have issues applying the formula for removing the first word
    =RIGHT(A2,LEN(A2)-FIND(" ",A2))
    When I insert it into Excel it opens an error window, saying that the formula is incorrect and marking =RIGHT([b]A2,LEN[/b](A2)-FIND(" ",A2))