To get the last date in a list in Excel, use =MAX(range) for the latest calendar date, or =LOOKUP(2,1/(range<>""),range) for the last date entered in list order. The first returns the newest date by value, the second returns the bottom-most non-blank date. Both are native formulas and need no add-ins.
What You'll Need
- Excel 2016 or later, Microsoft 365, or Excel for Mac (formulas below work in all of them)
- A column of dates formatted as real Excel dates, not text
- An empty cell to hold the result
Step-by-Step
- Check that your dates are real dates. Click a cell in the list. If the formula bar shows something like
1/15/2024or15-Jan-2024, it is a date. If it shows15.01.24as plain text or is left-aligned by default, it is text and MAX will ignore it. Convert with Data > Text to Columns > Finish, or retype the date. - Select an empty cell below or beside your list, for example
E2. - Type the latest-date formula:
=MAX(A2:A100), replacingA2:A100with your actual date range. Press Enter. The result is the newest date in that range. - Format the result cell as a date. If Excel shows a five-digit number like
45306, right-click the cell, choose Format Cells, pick Date, and confirm. The number is Excel's internal date serial, not an error. - Use a whole-column reference if the list grows:
=MAX(A:A)works but includes the header row, so keep the header text out of column A or use a bounded range instead. - For the last date entered in list order, use
=LOOKUP(2,1/(A2:A100<>""),A2:A100). This returns the bottom-most non-blank value in the range, regardless of whether it is the largest date. - To ignore blanks and errors in the MAX version, use
=MAX(IF(ISNUMBER(A2:A100),A2:A100))and confirm with Ctrl+Shift+Enter in older Excel; in Microsoft 365 and Excel 2021 it calculates normally. - Name the result if you will reuse it. Select the cell, type a name in the Name Box (left of the formula bar), and press Enter. You can then refer to it by name in other formulas.
Menu labels can differ slightly by Excel version, device, and region; the formulas themselves are the same on Windows, Mac, and Excel for the web.
Common Mistakes
- Dates stored as text. MAX returns 0 or ignores them. Left-aligned dates are the usual clue.
- Including the header.
=MAX(A:A)is fine only if row 1 holds no date-like text; otherwise useA2:A100. - Forgetting the date format. A raw serial number looks wrong but is correct.
- Confusing MAX with LOOKUP. MAX finds the newest date by value; LOOKUP finds the last row with an entry. A back-dated entry at the bottom will change the LOOKUP result but not MAX.
- Hard-coding the range. If rows are added below row 100, MAX stops seeing them. Use a larger range or an Excel Table (Insert > Table), which expands automatically.
Tips
- Convert your range to a Table (Ctrl+T) and reference it as ; the formula then covers new rows.
- Use
=MAXIFS(A2:A100,B2:B100,"Open")to get the latest date for a subset, such as only open items. - Use
=TODAY()-MAX(A2:A100)to see how many days have passed since the last date. - Press Ctrl+` (grave accent) to toggle formula view and confirm which cells contain formulas versus values.
Troubleshooting
- Result is 0: the range contains no real dates. Check alignment and the formula bar.
- Result is a number like 45306: format the cell as Date.
- #VALUE! error: the range includes text or errors. Wrap with IFERROR or narrow the range.
- Wrong date returned: you may have used LOOKUP where you wanted MAX, or the range is offset by one row. Click the formula and check the highlighted range.
- New rows not counted: extend the range or switch to a Table reference.
- Formula shows as text: the cell is formatted as Text. Set it to General, then re-enter the formula.
Frequently Asked Questions
How do I find the last date in a column with blanks?
Use =LOOKUP(2,1/(A2:A100<>""),A2:A100). It skips blanks and returns the bottom-most non-blank date.
What is the difference between MAX and LOOKUP here?
MAX returns the largest date value. LOOKUP returns the last date in row order, which may be earlier than the maximum if entries are out of sequence.
Why does MAX return 0?
The dates are stored as text or the range is empty. Convert them to real dates with Text to Columns or by retyping.
Can I get the last date for a specific category?
Yes, with =MAXIFS(date_range,category_range,"Category") in Excel 2019, Microsoft 365, and Excel for the web.
Does this work in Google Sheets?
Yes. MAX, LOOKUP, and MAXIFS behave the same way in Google Sheets.
Can I find the last date a file was modified?
Excel cannot read file metadata with a worksheet formula. That information is available through the file system or a macro, not a standard formula.