Formatting Issues

Hide 12:00 AM and Zero Values in Excel Timesheets

Elise WilliamsElise Williams Nov 18, 2026 868 views

Question details

Display blank-looking cells instead of 12:00 AM or zero break times in an Excel timesheet.

Hide 12:00 AM and Zero Values in Excel Timesheets
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.
Before you start

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.

Solution 1Recommended

Hide Zero Times with a Custom Number Format

Use this format to make zero times appear blank while retaining their underlying values.

1
Select the time cells

In Excel, select the timesheet cells that display 12:00 AM or zero time.

2
Open custom formatting

Right-click the selection, choose Format Cells, and select Custom on the Number tab.

3
Enter the format

In the Type box, enter hh:mm AM/PM;; and click OK. The two trailing semicolons leave the negative and zero format sections empty.

Hide Zero Times with a Custom Number Format
Midnight and negative values: The format also hides actual midnight values stored as zero and any negative values. For break durations, use [h]:mm;; instead if you want to display elapsed hours and minutes.
WPS Spreadsheets

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. 1. Open the timesheet: Open WPS Spreadsheets and use Open to select your timesheet file.
  2. 2. Select the cells: Select the time cells where zero values should appear blank.
  3. 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. 4. Apply and save: Click OK to apply the format, then use File > Save to save the timesheet.
Hide zero times without deleting the underlying valuesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formatting toolsWork with timesheet formulas and time formats
microsoft office alternative - wps office

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.