#1   Report Post  
Pete
 
Posts: n/a
Default Data Validation

How can I restrict entry to ceels between the times of
18:00 & 06:00, this must allow 22:00 etc

This is so it covers the night shift in 24hr format

Pete
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Select the cells
Choose DataValidation
From the Allow dropdown, choose Custom
In the Formula box, type a formula that refers to the active cell, e.g.:

=OR(B5=0.75,B5<=0.25)

Click OK

Pete wrote:
How can I restrict entry to ceels between the times of
18:00 & 06:00, this must allow 22:00 etc

This is so it covers the night shift in 24hr format

Pete



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way is to add 6 hours to what's in the cell and then check that to see if
it's still less than noon.

=MOD((A1+TIME(6,0,0)),1)<TIME(12,0,0)

(maybe "<=" instead of "<")

Pete wrote:

How can I restrict entry to ceels between the times of
18:00 & 06:00, this must allow 22:00 etc

This is so it covers the night shift in 24hr format

Pete


--

Dave Peterson
  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this:
Say times to be entered in Column E
Select E1:E10, then,
<Data <Validation,
In "Allow" window, check "custom",
In Formula box, enter:

=OR(E1=TIME(18,,),E1<=TIME(6,,))
Then <OK.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Pete" wrote in message
...
How can I restrict entry to ceels between the times of
18:00 & 06:00, this must allow 22:00 etc

This is so it covers the night shift in 24hr format

Pete


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM
Using Validation List from Another Workbook with Dependent Data Mike R. Excel Worksheet Functions 5 January 8th 05 07:06 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 04:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"