Hi
am a "new" user.
How do I extract the 2nd word from a cell that has varying length and is between colons eg.
eggs:flowers::beans44e
balls:trees::sprouts456gt, etc?
Your help is much appreciated.
Hi
am a "new" user.
How do I extract the 2nd word from a cell that has varying length and is between colons eg.
eggs:flowers::beans44e
balls:trees::sprouts456gt, etc?
Your help is much appreciated.
With your data in A1:
=TRIM(MID(SUBSTITUTE(A$1,":",REPT(" ",999)),(2)*999-998,999))
Gary's Student
Here's one way, with your string in A1:
=RIGHT(LEFT(A1,SEARCH("::",A1)-1),LEN(LEFT(A1,SEARCH("::",A1)-1))-SEARCH(":",A1))
Hope this helps.
Pete
Try this. If the text is in A1, put the formula in B1 -
Formula:Please Login or Register to view this content.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
Thank you very much it is working!!
Hi, can I put this in as an Add-Ins because I have to do this every month. If yes, how do I do it?
Thanks in advance.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks