Ok, so I have been asked to find which value is higher in a column of times in excel. Currently I am using the following...
Code:
If Range("Z24").Value > Range("Z25").Value Then
strDIUnd = Range("Z24").Text & " @ " & Range("X24").Text & "-" & Range("Y24").Text & " MT"
Else
strDIUnd = Range("Z25").Text & " @ " & Range("X25").Text & "-" & Range("Y25").Text & " ET"
End If
[code]
This is working fine, however, if the time is less than a minute, that value is chosen. So if I have 3:25 and 4:18, it takes 4:18. If I have :24 and 4:18 it will pick :24. Is there any way to get around this?
All help is appreciated!
Dan