I've got a string that looks like the following:
ABC DEF GHIJ 01234567 ABC DEF ABCD 1/02/2011
I am trying to extract the 1234567 from this string and I'm having some trouble with the mid formula. Many of the strings in the column are different lengths, so I need the number of characters to be higher, like 80, but in the case of this string, 80 characters finds a number, then a date, and returns #VALUE. I need a macro that will find and replace all dates with "", if possible. Or maybe it would be better to remove the second string of numbers in the string, if that's possible, since I believe some of the strings will have 01234567 and then further down the string might have 56789. Any ideas?
Here is the mid function I'm using:
{=MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),COUNT(1*MID(A1,ROW($1:$9),1)))}
Bookmarks