Search code examples
validationgoogle-sheetstimestring-formattingnumber-formatting

Why is data validation not working with entire list of times?


I have a list of 96 times in 15 minute intervals that I'm trying to use for data validation. It turns out that it works only up to a certain point. When selecting times from 00:00 to 18:30 it works fine. When selecting times from 18:45 to 23:45 it throws an error.

The data that you entered in cell B1 violates the data validation rules set on this cell.

I made a test file to see if the same thing would happen if I used a different type of data, but when using a lists of numbers or text with the same amount of items it seems to work without issues.

https://docs.google.com/spreadsheets/d/1ClBhZk6fysOq0wqIrE5IxJgPMs_A05gJsN_kEiXoFGI/edit?usp=sharing

Does anyone know the reason why it doesn't work with the list of times? More importantly, does anyone know a way I could get it to work?

Edit: The steps provided by player0 worked to fix it in my test file linked above, but didn't make a difference in the real file I'm working on. Here's a copy of the real file which exhibits the same problem.

https://docs.google.com/spreadsheets/d/1cOMB0BpzSBR7ZM7fJQQfhA56fniKTBJb-3TePUky6gM/edit?usp=sharing

Please try setting a time of greater than 18:30 in a couple of cells. I keep getting the same errors.

I suppose a workaround could be to not reject input on invalid data, but I feel this should just work with rejecting it and would like to know where I went wrong.


Solution

  • formatting. select columns A & B and force Time (or Plain text):

    enter image description here