Formula Errors

Highlight Invalid Date Values in Excel with Conditional Formatting

Ayan MasoodAyan Masood Dec 2, 2026 868 views

Question details

Identify blank cells and values that Excel does not recognize as dates using conditional formatting.

Highlight Invalid Date Values in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains a range of dates that needs to be checked for missing or unrecognized entries.
Observed behavior
Blank cells and invalid date text should be highlighted, while recognized date values remain unhighlighted.
Before you start

Identify the first cell in the date range and check whether the entries include date text, Excel date serial numbers, or both. Date text must be recognizable under your system's regional date settings.

Solution 1Recommended

Highlight blank and unrecognized date entries in Excel

Use a formula-based conditional formatting rule for a range containing date text and numeric date values.

Excel stores actual dates as numbers. This rule accepts all numeric values, including numbers that may not be intended as dates; it cannot verify that a cell uses a particular date display format.

1
Select the date range

Select the cells to check, such as A1:A100. Note the top-left cell of the selection.

2
Create a formula rule

On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the formula

Enter =IF(A1="",TRUE,IF(ISNUMBER(A1),FALSE,IFERROR(NOT(ISNUMBER(DATEVALUE(A1))),TRUE))). Replace A1 with the top-left cell of your selected range, keeping the reference relative.

4
Choose a highlight

Select Format, choose a fill color, and select OK to save the format and the rule. Blank cells and date text that DATEVALUE cannot interpret will be highlighted.

Highlight blank and unrecognized date entries in Excel
Check the display format separately: The rule checks whether text can be interpreted as a date, not whether every cell looks the same. To inspect or apply a date display format to numeric values, select the cells and open Format Cells > Number > Date.
Check dates in WPS Spreadsheet

Highlight invalid date entries in WPS Spreadsheet

Use a formula-based conditional formatting rule in WPS Spreadsheet to flag blank cells and unrecognized date text.

  1. 1. Open the workbook: Open the spreadsheet in WPS Spreadsheet and select the date range you want to check.
  2. 2. Start a rule: On the Home tab, open Conditional Formatting > New Rule and choose the option to use a formula.
  3. 3. Enter the date check: Enter =IF(A1="",TRUE,IF(ISNUMBER(A1),FALSE,IFERROR(NOT(ISNUMBER(DATEVALUE(A1))),TRUE))), replacing A1 with the top-left cell of the selected range.
  4. 4. Set the format: Choose a fill color under Format and confirm the rule to highlight blank cells and unrecognized date text.
Highlight missing and unrecognized date entries in a selected range.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface with conditional formatting tools.Work with spreadsheets using a free Office alternative.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the rule accept numeric cells that do not look like dates?

Excel stores dates as numbers, so the rule accepts every numeric value. Check the values and use Format Cells > Number > Date if you want to apply a date display format.

Will the rule highlight formulas that return an empty string?

Yes. The A1="" test treats a formula result of an empty string as blank, so the conditional formatting rule highlights it.

Why is a valid-looking date string highlighted?

DATEVALUE interprets text using regional date settings. If the text uses a different date order or an unsupported format, Excel may not recognize it. Check the date text and your system's regional settings.

Can the rule detect inconsistent date display formats?

No. It checks whether text can be interpreted as a date and accepts numeric values. To standardize the appearance of numeric dates, select the cells and use Format Cells > Number > Date.