Find numeric value at end of string
If there will always be a space prior to the date, try...
=MID(A1,FIND(" ",A1,FIND("[",A1))+1,(SEARCH(".xls",A1)-1)-FIND("
",A1,FIND("[",A1)))
Hope this helps!
In article ,
"Barb Reinhardt" wrote:
Let's say I have a string that looks like this
C:\Documents and Settings\me\[test 2-2006.xls]Sheet1
I want to extract the DATE prior to .xls. I can get to this:
C:\Documents and Settings\me\[test 2-2006
It is possible that the filename would have numbers in it prior to the date.
I'm trying to figure out a way to get to the last SPACE in the string. Any
suggestions?
Thanks,
Barb Reinhardt
|