+ Reply to Thread
Results 1 to 3 of 3

Data Validation

  1. #1
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    Data Validation

    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.

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    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.

  3. #3
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    Thanks.

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1