How to Find the Maximum Date in Excel While Ignoring Blank Cells
Question details
The user needs to accurately calculate the maximum (latest) date in a range while ignoring blank cells to prevent formula errors.

- 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.
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.
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.
Click on the empty cell where you want the latest date to be displayed.
Type the formula =MAX(IF(ISBLANK(A2:A100),0,A2:A100)), making sure to replace 'A2:A100' with your actual data range.
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 {}.
Right-click the result cell, select 'Format Cells', choose 'Date' under the Number tab, and click OK.

Use MAXIFS with a Non-Blank Condition
Filter out empty cells directly within the MAXIFS formula by adding criteria that exclude blanks.
Extract the Maximum Date Using a PivotTable
Create a PivotTable to automatically group your data and extract the maximum date without writing any formulas.
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. Install WPS Office: Download and install WPS Office for free from the official website.
- 2. Open Your Data: Launch WPS Spreadsheet and open your existing dataset containing the date column.
- 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.

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.




