Data Validation

E

exsam21

I am having the data entry clerk entering time in military form (ex:
1330 = 1:30pm), but I do not want the last two digits to go over 60 at
anytime. Can anyone help? Is there a function in excel that will do
military time? Thanks.
 
G

Gary Brown

You could use a custom data validation as follows:-

(assuming the data is going into A1 - adjust A1 if this is not the
case)

=IF(VALUE(RIGHT(A1,2))>60,FALSE,TRUE)

You may want to expand this to validate the hours as well, so that you
can't enter a number greater than 23.
 
Top