To return the maximum (latest) date in Excel, use =MAX(range) when the cells hold real dates, and =MAXIFS(range, criteria_range, criteria) when you need the latest date for one item in a list. If the dates were typed as text, no formula will work until you convert them to real date values — that is the most common reason people get a wrong answer or a 0.
What You'll Need
- Excel for Microsoft 365, Excel 2021 or 2019 (MAXIFS needs 2019 or later; desktop Excel for Mac 2016 and later also has it). Older versions can use the array alternative described in the steps.
- A column of dates entered as real Excel dates, not text.
- Optionally a second column (a name, product, category or region) if you want the latest date per group.
Step-by-Step
- Confirm the dates are real dates. Select a date cell and look at the formula bar. A real date appears there as something like
5/12/2026or2026-12-05, and the cell shows the date in whatever format is applied. If the formula bar shows the same text you see in the cell and the value sits at the left edge of the cell, it is text. Real dates sit at the right edge unless the column has been left-aligned manually. Menu labels vary slightly by version and region, so if a button name below looks different, look for the closest equivalent. - Fix text dates if you find any. The quickest route: select the column, open the Data tab, and use Text to Columns, click Next twice to reach step 3, choose Date and pick the order the dates were written in (for example DMY or MDY), then finish. If your Excel language differs from the date layout, that setting is the part people get wrong. As an alternative, type
1into an empty cell, copy it, select the dates, then use Paste Special and choose Multiply. - Write the basic formula. Click an empty cell and type
=MAX(A2:A100), replacing the range with your own date column. Press Enter. Excel returns the latest date as a serial number, so apply a date format: select the cell, open the Home tab, and pick a date style from the Number Format drop-down (or use Format Cells > Date). - Ignore blanks and errors in the range. MAX skips empty cells and text, which is what you want. But a single
#N/Aor#VALUE!error cell inside the range makes the whole result an error. Either repair the error or point the range only at the clean block of dates. - Get the latest date for one item with MAXIFS. With names in B2:B100 and dates in C2:C100, type
=MAXIFS(C2:C100,B2:B100,"Kitchen")to return the most recent date recorded for Kitchen. Format that result cell as a date as well. On Excel 2019 or later this works as a normal formula. - Use the array alternative on older Excel. Without MAXIFS, enter
=MAX(IF(B2:B100="Kitchen",C2:C100))and press Ctrl+Shift+Enter (Command+Return on Mac) so it becomes an array formula. Excel wraps it in braces. Only array-enter it in versions that do not have dynamic arrays, or it will simply run as normal. - Pull the matching row, not just the date. To show what happened on the latest date, use
=XLOOKUP(MAX(A2:A100),A2:A100,B2:B100)in Microsoft 365 and Excel 2021 to fetch the neighbouring description. On older builds, use=INDEX(B2:B100,MATCH(MAX(A2:A100),A2:A100,0)). If two rows share the latest date, both formulas return the first match, so decide which row should win. - Build a live summary cell. Put your latest date in a cell, then reference it elsewhere with
=TEXT(C1,"dd mmm yyyy")to display it in a fixed format, or use it in a conditional format to highlight the row holding that date. This keeps the summary correct as new rows are added, provided your range covers the new rows.
Common Mistakes
Date-looking text. The number-one failure. If the formula returns 0 or a date far in the past, the column is almost certainly text. Test with =ISNUMBER(A2) — TRUE means a real date.
A range that misses rows. Typing A2:A100 and then pasting data down to row 400 silently excludes the newest dates. Use a whole-column reference like =MAX(A:A) only when the sheet has no other numbers in that column, or extend the range generously.
Dates split across columns. A separate year, month and day column cannot be maxed directly. You need a helper column that combines them: =DATE(A2,B2,C2).
Formatting a result as General. The formula may be right while the cell displays 46000. Apply a date format before assuming the answer is wrong.
Expecting MAX to read text dates by date order. It does not. Among text values MAX compares alphabetically, so "9/1/2026" can beat "12/1/2026" because 9 sorts after 1.
Tips
Use MAXIFS with several criteria when you need a filtered latest date, for example the most recent visit for a name in one column and a status in another: add each criteria range and criteria pair.
For a rolling window, swap the fixed range for MAX(INDEX(A:A,MATCH(9.99E+307,A:A)-29):INDEX(A:A,MATCH(9.99E+307,A:A))) only if you understand it fully — a simpler approach with modern Excel is =MAX(FILTER(A2:A1000,A2:A1000>=TODAY()-30)).
Name your range with Formulas > Define Name so formulas stay readable, and press Ctrl+Shift+Down Arrow to select a column block quickly before copying ranges.
Keep one date per cell. A range like "1–5 Dec" defeats every date function in the workbook.
Troubleshooting
If the answer is 0 or an unexpected date, select the result cell and use Formulas > Evaluate Formula to step through and see what the function actually received. Then run =ISNUMBER() on a few date cells to confirm they are numbers.
If you get #VALUE!, check for error cells or text inside the range, and confirm MAXIFS ranges are the same size — mismatched ranges trigger #VALUE!.
If the result is off by a day or two, suspect a date-order problem from text conversion: dates written as MDY but converted as DMY land in the wrong month. Reconverting with the correct order fixes it.
If #N/A appears, your lookup value (the max date) does not exactly match any cell, often because one side carries a time component. Truncate both with INT() or compare against the max of truncated values.
If the formula seems frozen at an old date, the range does not cover the new rows, or the workbook is set to manual calculation — check Formulas > Calculation Options > Automatic.
Frequently Asked Questions
Why does MAX return 0 for my dates?
Because the cells are stored as text. MAX sees no numbers, so it returns 0. Convert the column to real dates with Text to Columns and the formula will work.
Does MAX work with blank cells in the range?
Yes. Blanks and text are ignored, though error values are not, so remove or exclude those.
How do I get the latest date for each name at once?
Use =MAXIFS(date_range, name_range, name) in a helper column beside a unique list of names, then fill down, or build a PivotTable and set the date field to show the maximum value.
Can I find the max date that is before today?
Yes: =MAXIFS(A2:A100,A2:A100,"<"&TODAY()) returns the latest date earlier than today.
Why does the cell show a five-digit number instead of a date?
The cell has a General or Number format. Excel stores dates as serial numbers; apply a Date format from the Home tab to display it properly.
Is there a MAX function for times as well?
Yes, MAX works on times because they are stored as fractions of a day. Format the result as Time rather than Date.