Home > Uncategorized > Excel First word Last word Nth word

Excel First word Last word Nth word

Here’s an easy way to get the first word of a string
=LEFT(A1, SEARCH(” “, A1)-1)

Here’s an easy way to get the last word of a string
=TRIM(RIGHT(SUBSTITUTE(A1,” “,REPT(” “,100)),100))

And here’s an easy way to get the nth word of a string
=TRIM(MID(SUBSTITUTE(A1,” “,REPT(” “,100)), (nth-1)*100+1, 100))

No more macros, yeah!

Advertisement
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.