Thread: Data Validation
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary Brown
 
Posts: n/a
Default Data Validation


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.


--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084
View this thread: http://www.excelforum.com/showthread...hreadid=502516