close

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.--
exsam21
------------------------------------------------------------------------
exsam21's Profile: www.excelforum.com/member.php...oamp;userid=22666
View this thread: www.excelforum.com/showthread...hreadid=502516
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))gt;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.--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: www.excelforum.com/member.php...oamp;userid=17084
View this thread: www.excelforum.com/showthread...hreadid=502516
Thank you very much.--
exsam21
------------------------------------------------------------------------
exsam21's Profile: www.excelforum.com/member.php...oamp;userid=22666
View this thread: www.excelforum.com/showthread...hreadid=502516

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()