If there's only one occurrence of a number in the string (ie the one you want to extract) then the following is another formula option:
=-LOOKUP(0,-MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW(INDIRECT("1:"&LEN(A1)))))
Hope this helps!
Richard
EDIT: Rylo, there are slighly easier ways of writing the pattern if using Regular Expressions, two of which are below:
GetNum1 simply extracts the first numerical string of digits it matches in the string. This would work in all the highlighted examples. GetNum2 specifically matches to a sequence of digits ending with a closing bracket ). There could still be times when either of these returned incorrect results but that depends on the structure of the string passed to the function and also exactly what the required return value would be in those cases).
Bookmarks