A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Select D12.
Format it as hh:mm
On the Data tab, select Data Validation.
Select Custom from the Allow drop-down list.
Enter the following formula in the Formula box:
=AND(ISNUMBER(D12), D12>=0, D12<1, D9<>"--")
If you wish, enter an instruction in the Input Message tab, and/or an appropriate error message in the Error Alert tab.
Click OK,