You can extract the dates & times with a formaula like:
=--SUBSTITUTE(SUBSTITUTE(TRIM(MID(A1,FIND("/",A1)-1-(FIND("/",A1)>2),LEN(A1))),"AM"," AM"),"PM"," PM")
where the string you're processing is in A1. This returns a number which you can format as a date & time if you prefer.
As for the comparisons, are the data sorted by date & time? If so, the comparison requires nothing more than a simple subtraction using the results of the above formula.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|