Data Validation - Time Range - 15 Minute Intervals

JugglerJAF

Active Member
Joined
Feb 17, 2002
Messages
297
Office Version
  1. 365
Platform
  1. Windows
I have a range of cells in which I need users to input a time (input as hh:mm) between 06:00 and 22:00, but the times can be at 15 minute intervals betweenthose times (i.e. 06:00, 06:15, 06:30 etc.)

I've set up a "valid entries" list containing those values, assigned that range a name and used that name as the source for a Data Validation list, but even though the entries I'm typing are in the range of valid entries, I sometimes (but not always) get an error message when I type in certain times.

Is there a better/easier/more reliable way of setting up this validation?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Maybe try Allow Custom, Formula:

=AND(A1>=TIMEVALUE("06:00"),A1<=TIMEVALUE("22:00"),MOD(MINUTE(A1),15)=0)

where A1 is the Data Validation cell.
 
Upvote 0

Forum statistics

Threads
1,221,028
Messages
6,157,502
Members
451,420
Latest member
redclay01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top