Extract the Last Word from a Text String

IntermediateText Manipulation

I need to extract the last word from a sentence or name.

The Formula

=TEXTAFTER(A1, " ", -1)

How It Works

1

The -1 argument tells TEXTAFTER to search from the end of the string.

2

It grabs everything after the last space found.

💡 Pro Tips

  • • Test the formula with sample data before applying to your entire dataset
  • • Use absolute references ($A$1) when copying formulas to prevent reference errors
  • • Consider error handling with IFERROR() for more robust formulas
  • • Document your formulas with comments for future reference

Need a Custom Formula?

Can't find exactly what you need? Our AI can generate custom Excel formulas based on your specific requirements.

Try AI Generator

Formula Details

Difficulty:Intermediate
Category:Text Manipulation
Steps:2