Using "BACARDI SINGLE 000000000000000148" as an example, could someone give me the code in Excel 2007 to extract "BACARDI SINGLE" from the string. I'm looking to extract any information to the left of the 8 spaces.
Thanks
Using "BACARDI SINGLE 000000000000000148" as an example, could someone give me the code in Excel 2007 to extract "BACARDI SINGLE" from the string. I'm looking to extract any information to the left of the 8 spaces.
Thanks
i cant see 8 spaces in your example, probably due to formating, but try
![]()
Please Login or Register to view this content.
Last edited by DGagnon; 02-28-2012 at 08:44 PM.
If you liked my solution, please click on the Star -- to add to my reputation
If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.
The 8 spaces do not show up on the forum, though I can see them by quoting your post.
You can do this:
I've put quote tags around the formula so the spaces will not be trimmed.=LEFT(A1,SEARCH("........",A1)-1)
Hope this helps.
Pete
EDIT: even that didn't stop them from disappearing, so I've put full-stops in instead - use spaces in your workbook.
Pete
The 8 spaces are between the word SINGLE and the numeric. I have tried that, but return a #VALUE! error.
can you privde a few lines of samples in an excel workbook format?
Fabulous. Thank you Pete.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks