DATA Validation for Military Time help requested

Endosmok

New Member
Joined
Oct 20, 2017
Messages
20
So I have an excel sheet that people enter time in military format.
In the FORMAT CELLS, I have it set to CUSTOM -> h:mm
I also have some calculations for time which are working fine.

But I want to make sure that users are only entering numbers for time. So I went to data validation.

When I select the default TIME for data validation, I get an error on my ending time range.

Maybe the default one doesn't like Military Time?

I have BETWEEN Start 0000 and I try End 2359 (I also tried 235959) and excel says end time is not valid.

Any ideas on how to get data validation working with military time?

Thanks
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Personally I want total control over what my users put into my sheets. So I would......

Format ALL time cells as text and use the following formula in calculations to get the desired results......

Please remove speech marks at the beginning and end

"=LEFT(A1,2)&":"&RIGHT(A1,2)"
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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