Hi all,
I need to use the LEFT & RIGHT function BUT not to count characters but whole words that are seperated by a space.
Any ideas on a formula / Function I can use?
Regards & Thanks in advance,
BVG
Hi all,
I need to use the LEFT & RIGHT function BUT not to count characters but whole words that are seperated by a space.
Any ideas on a formula / Function I can use?
Regards & Thanks in advance,
BVG
Maybe
VBA Noob=LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ",""))+1
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
That worked, as it always does when you give a solution. Thank you.
The other problem I have is........
I have a string of words in a cell (A1) and in A2 I would like the same string of words BUT seperated with a comma between each word.
Regards BVG
See if this helps
=SUBSTITUTE(TRIM(A1)," ",",")
VBA Noob
Perfect. Thank you very much yet again.
Regards BVG
No problem
Glad it helped
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks