Danny,
Welcome to the forum!
This looked like an interesting challenge so I gave it a shot. I know Ron has already provided a solution, but here's what I came up.
If you are always looking for a 5xx.xxx number, then this should work:
=MID(A1,SEARCH(" 5*.* ",A1)+1,7)
However, if the number does not always start with 5, and if the length of the number is not always 7 (xxx.xxx) then this will extract it regardless (this formula also converts - into . so that it will still pull the number:
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",255)),MIN(SEARCH(" "&{1,2,3,4,5,6,7,8,9,0}&"*.* ",SUBSTITUTE(SUBSTITUTE(A1&" 1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 0.0 ","-",".")," ",REPT(" ",255)))),255))
As for your later stated requirement of finding a different pattern, I didn't have much luck with that, so hopefully the UDF Ron provided will work for you
Bookmarks