Extract the nth word in a text string in Excel and Google Sheets
=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",LEN(A2))),(C5-1)*LEN(A2)+1,LEN(A2)))
A2 = data cell; C5 = nth word to extract
Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.Extract Nth word from a text string in Excel
How to extract nth word from a text string in Excel?Extract Nth word from a text string in Excel
EXTRACT NTH WORD FROM A TEXT STRING — EXCEL FORMULA AND EXAMPLE
EXTRACT NTH WORD FROM A TEXT STRING — EXCEL FORMULA AND EXAMPLE
=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",LEN(A2))),(C5-1)*LEN(A2)+1,LEN(A2)))
A2 = data cell
C5 = nth word to extract
Extract Nth word from a text string in Google Sheets
How to extract nth word from a text string in Google Sheets?Extract Nth word from a text string in Google Sheets
EXTRACT NTH WORD FROM A TEXT STRING — GOOGLE SHEETS FORMULA AND EXAMPLE
EXTRACT NTH WORD FROM A TEXT STRING — GOOGLE SHEETS FORMULA AND EXAMPLE
=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",LEN(A2))),(C5-1)*LEN(A2)+1,LEN(A2)))
A2 = data cell
C5 = nth word to extract
Other useful extract formulas in Excel and Google Sheets explained
- Extract left before first space
- Extract right after first space
- Extract domain URL from a link
- Extract URL domain root
- Flip the first and last name
- Get the last non-empty cell in a column
- Get the first non-empty cell in a column
- Extract text inside characters (parentheses)
- Get text between colons in Google Sheets
- Get text between comma in Google Sheets
- Sum by month
- SUMIF cells if contains part of a text string
- Sum total sales based on quantity & price
- Combine date and time
- Convert 1-12 to month name
- Dynamic current date and time
- Count blank cell
- Count cell between two values
- Combine two or more cell
- Extract the nth words in a text string
- SUMIF formulas and example
- SUMIFS formulas and example
- COUNTIF formulas and example
- IF formulas and example
- TEXT formulas and example
- CONVERT formulas and example
- Change the negative number to zero
- Change negative to positive numbers
- Calculate percentage changes for containing zero or negative values
- Convert date to text
- Convert time to text
- Convert weekday string to number
- Combine two or more cells with a line break
- Combine two or more cells and transpose
- Count cells over 10 characters
- Count cells that are not blank
- Count if cells contain a specific text
- Count cells that begin with a specific text
- COUNTIF based on multiple criteria