Hide 12:00 AM and Zero Values in Excel Timesheets
Question details
Display blank-looking cells instead of 12:00 AM or zero break times in an Excel timesheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A timesheet contains time or break cells that show zero values when no time has been entered.
- Observed behavior
- Some cells display 12:00 AM or a zero time instead of appearing blank.
Identify the timesheet cells that should hide zero values, and check whether they contain formulas or entered times. A zero time can also represent an actual midnight, so only apply the format where midnight should be hidden.
Hide Zero Times with a Custom Number Format
Use this format to make zero times appear blank while retaining their underlying values.
In Excel, select the timesheet cells that display 12:00 AM or zero time.
Right-click the selection, choose Format Cells, and select Custom on the Number tab.
In the Type box, enter hh:mm AM/PM;; and click OK. The two trailing semicolons leave the negative and zero format sections empty.

Return an Empty Result with an IF Formula
Use a formula in a separate cell when the displayed result should be an empty string rather than a formatted zero.
Hide Zero Times in WPS Spreadsheets
Use a custom number format in WPS Spreadsheets to make zero times appear blank while keeping the values available for calculations.
- 1. Open the timesheet: Open WPS Spreadsheets and use Open to select your timesheet file.
- 2. Select the cells: Select the time cells where zero values should appear blank.
- 3. Set the custom format: Right-click the selection, choose Format Cells, select Custom, and enter hh:mm AM/PM;; in the format box.
- 4. Apply and save: Click OK to apply the format, then use File > Save to save the timesheet.

Frequently Asked Questions
Does the custom format delete zero values?
No. The format hides their display, but the underlying values remain available for calculations. Select a cell and check the formula bar to inspect its contents.
Why does a real midnight entry disappear too?
Excel stores midnight as zero, so the custom format cannot distinguish it from another zero value. Avoid applying the format to cells where an actual midnight must be visible.
How can I hide zero break durations instead of clock times?
Select the break-duration cells, open Format Cells > Custom, and enter [h]:mm;;. This displays nonzero elapsed hours and minutes while hiding zero and negative values.
Is a cell with an IF formula returning an empty string truly blank?
No. A formula such as =IF(A1=0,"",A1) remains in the cell even when its result looks blank.




