In other words, as we approach midnight, the value of time approaches 1.

Formatting time

Time is displayed in Excel using a number format for time.

More on custom number formatshere.

Time formatting options in Excel via Format Cells dialog

For example, 0.5* 24 = 12 hours, 0.25* 24 = 6 hours, etc.

For more details, seeConvert Excel time to decimal value.

Time formatting options in Excel via Format Cells dialog

Time formatting options in Excel via Format Cells dialog

Time formatting options in Excel via Format Cells dialog

Time formatting options in Excel via Format Cells dialog

Time formatting options in Excel via Format Cells dialog