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.