Data Validation

  • Thread starter Thread starter exsam21
  • Start date Start date
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top