I want to count spaces between last two words in a text string. Any suggestions?
See example below.
![]()
Please Login or Register to view this content.
I want to count spaces between last two words in a text string. Any suggestions?
See example below.
![]()
Please Login or Register to view this content.
Last edited by mkvassh; 10-26-2011 at 03:33 AM.
If the item is in A1, then with a couple of helper columns to get second last and last strings...
in B1:in C1:![]()
Please Login or Register to view this content.
then in D1:![]()
Please Login or Register to view this content.
else if you want it all in one formula:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Maybe slightly shorter. (Assumes that there are no preceding duplicates that match the second last column)
In B2 (Same as NBVC)
In C2![]()
Please Login or Register to view this content.
Or with one formula![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Maybe this:
Edit: but not if last word is in the string more then once...![]()
Please Login or Register to view this content.
Last edited by zbor; 10-25-2011 at 01:55 PM.
Never use Merged Cells in Excel
Thanks a lot, all of you :-)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks