Hi:
I've got a column that I'd like to loop to the end, and if the value of the text in that cell starts with an A or number, I want to strip out everything except the first 10 characters.
How would I do that?
Thanks, Paul
Hi:
I've got a column that I'd like to loop to the end, and if the value of the text in that cell starts with an A or number, I want to strip out everything except the first 10 characters.
How would I do that?
Thanks, Paul
Here, try this:
Formula wise - based on zbor's file - perhaps:
=LEFT(A1,IF(OR(LEFT(A1)="a",ISNUMBER(--LEFT(A1))),10,LEN(A1)))
If you want a VBA routine to replace the originals then you could use something like:
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Zbor and DonkeyOte.
Wow. That worked great. Thanks, it is much appreciated!
Oops wanted new thread!
Last edited by SWMagic; 03-25-2010 at 12:44 PM.
Well this is embarrassing. New Post doesn't really mean that does it...
New post doesn't really mean that does New thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks