logo
search
Formula Errors

How to Find the Maximum Date in Excel While Ignoring Blank Cells

Emma BrownEmma Brown Oct 1, 2026 868 views

Question details

The user needs to accurately calculate the maximum (latest) date in a range while ignoring blank cells to prevent formula errors.

How to Find the Maximum Date in Excel While Ignoring Blank Cells
Product
Excel
Device & OS
not provided
Scenario
Calculating the latest date in a dataset containing empty date cells using formulas or pivot tables.
Observed behavior
Standard MAXIFS formulas may return incorrect far-future dates (e.g., 9999) or evaluate blanks as zeros (1900 dates) when blank cells are included in the range.
Before you start

Ensure your target column contains valid Excel dates formatted as 'Date' rather than 'Text', as formulas rely on underlying numerical serial values to determine the maximum date.

Solution 1Recommended

Use an Array Formula with MAX, IF, and ISBLANK

Combine the MAX, IF, and ISBLANK functions to evaluate the date range safely, treating blank cells as zeros before finding the highest value.

This method converts all blank cells to zero inside the formula's memory. Since valid dates are large numbers (e.g., 40000+), the zeros are ignored when the MAX function retrieves the highest value.

1
Select the output cell

Click on the empty cell where you want the latest date to be displayed.

2
Enter the array formula

Type the formula =MAX(IF(ISBLANK(A2:A100),0,A2:A100)), making sure to replace 'A2:A100' with your actual data range.

3
Confirm the formula

If you are using an older version of Excel (prior to Excel 365), press Ctrl+Shift+Enter to confirm it as an array formula. The formula will be wrapped in curly brackets {}.

4
Format as Date

Right-click the result cell, select 'Format Cells', choose 'Date' under the Number tab, and click OK.

Use an Array Formula with MAX, IF, and ISBLANK
Tip: In newer Excel versions with Dynamic Arrays (Excel 365 and Excel 2021), you can simply press Enter without needing Ctrl+Shift+Enter.
Efficient Data Analysis with WPS Spreadsheet

Easily Manage and Analyze Dates with WPS Spreadsheet

WPS Spreadsheet fully supports Excel array formulas, MAXIFS, and PivotTables natively. You can effortlessly handle complex date calculations, ignore blanks, and manipulate large datasets in a lightweight, user-friendly interface.

  1. 1. Install WPS Office: Download and install WPS Office for free from the official website.
  2. 2. Open Your Data: Launch WPS Spreadsheet and open your existing dataset containing the date column.
  3. 3. Apply the Formula: Enter the formula =MAX(IF(ISBLANK(range),0,range)) and press Ctrl+Shift+Enter to instantly get the latest date while bypassing blank cells.
Fully compatible with Microsoft Excel (.xlsx) file formats.Supports advanced functions including MAXIFS and array formulas natively.Intuitive interface for creating powerful PivotTables with custom summarizations.Lightweight software that runs smoothly on both high-end and low-end PCs.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my MAX function return January 0, 1900?

This happens when your formula calculates a blank cell or a zero value as the maximum. In Excel's default date system, the number 0 corresponds to the date January 0, 1900. You can fix this by using the MAXIFS or array formula solutions above to ignore zeros.

Can I use the MAX function on dates formatted as text?

No, the MAX function only works on numeric values, and Excel treats text dates as strings without numeric weight. You must convert the text to actual date values using the DATEVALUE function or the 'Text to Columns' tool before applying your MAX formula.

How do I find the maximum date based on specific criteria?

You can use the MAXIFS function for this. The syntax is =MAXIFS(Max_Range, Criteria_Range1, Criteria1). This allows you to find the latest date corresponding to a specific ID, name, or status while naturally supporting multiple conditions.