
Originally Posted by
Rick Rothstein
As for the OP's search, if there is always a space after the number being searched for...
If there is not always going to be a space after the number, then this shorter array-entered** formula could be used...
Formula:
=0+MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),MIN(IF(NOT(ISNUMBER(-MID(A1&"X",10+ROW(1:99),1))),10+ROW(1:99)))-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")))
** Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
Bookmarks