Answers for "extract the nth word from a text string"

VBA
2

extract the nth word from a text string

Excel formular
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))), (N-1)*LEN(A1)+1, LEN(A1)))
'Replace A1 with the target columns
'Replace N with the word position
Posted by: Guest on September-14-2021

Code answers related to "extract the nth word from a text string"

Code answers related to "VBA"

Browse Popular Code Answers by Language