Hi everyone, I'm new the forums, and very new to using Excel VBE. I'm not too sure about its limitations and I may ask stupid questions, please be patient with me haha. Also if I'm being unclear on anything just let me know and I'll clarify. Thanks in advance for your help!
So let's simplify and say my worksheet just has 1 column and 50,000 rows. All the cells are filled with something like "000001-ABC_DEF_BLAH All_NEW HELLO WORLD_15x15", the main thing I have to do with A1 through A50,000 is to use text to column to get rid of the useless first number, in that example it should end up returning "000001" in A1, and "ABC_DEF_BLAH All_NEW HELLO WORLD_15x15" in B1. Now, if all the cells were in that format, it would be simple to use text to column with delimiter "-" to do so for all rows, but it's never that simple is it
The problem is that some of the cells don't have the useless number that I'm trying to get rid of. They are filled with values like "ABC_DEF_BLAH All_NEW-HELLO WORLD_15x15" where the "-" is in the middle of the string of text. I know for certain that the beginning number is always 5 or 6 numbers long, and IF the cell doesn't carry the useless number, and has a "-" in the middle, the "-" is never in the first 7 characters. Is there a way to use a macro to text to column selectively JUST if there is a "-" in the first 7 characters?
Thanks again and if I need to clarify anything please let me know!
-Derek
Bookmarks