Use the Latest Follow-Up Date in an Excel IF Formula
Question details
Calculate a closing date using the most recent follow-up date rather than always using the first attempt.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Follow-up dates are in columns M, N, and O, and the calculation should depend on the status in column L.
- Observed behavior
- The desired formula checks the latest valid date and returns a closing date only when the status and date conditions are met.
Check that M13:O13 contain actual Excel dates, not dates stored as text, and that L13 contains the intended status. Choose an empty cell for the result and adjust the row references if your data starts elsewhere.
Use MAX with IF to Calculate from the Latest Follow-Up
Use this formula to return a date two days after the latest follow-up when the status is Message left and the follow-up is more than two days old.
MAX selects the latest numeric date in M13:O13. COUNT prevents an empty date range from being treated as zero.
Select an empty result cell in row 13 and enter =IF(AND(L13="Message left",COUNT(M13:O13)>0),IF(MAX(M13:O13)<TODAY()-2,MAX(M13:O13)+2,""),"").
Select the result cell and choose Home > Number Format > Short Date, or another date format.
Drag the result cell's fill handle down to copy the formula, then check that each row's status and follow-up dates are referenced correctly.

Use the Latest Follow-Up Date in WPS Spreadsheets
Open your spreadsheet in WPS Spreadsheets and use the same IF, MAX, and TODAY formula to calculate a closing date from the latest follow-up.
- 1. Open the workbook: In WPS Spreadsheets, select Open and choose the Excel workbook containing your follow-up records.
- 2. Enter the formula: Select an empty result cell in row 13 and enter =IF(AND(L13="Message left",COUNT(M13:O13)>0),IF(MAX(M13:O13)<TODAY()-2,MAX(M13:O13)+2,""),"").
- 3. Format and copy: Select the result cell, choose a date format from the Home tab's Number Format menu, and drag the fill handle down for additional rows.
- 4. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.

Frequently Asked Questions
What happens if all three follow-up cells are empty?
The COUNT(M13:O13)>0 check fails, so the formula returns a blank instead of calculating from zero.
Why is the result a number instead of a date?
Excel stores dates as numbers. Select the result cell and choose Home > Number Format > Short Date to display it as a date.
Does MAX choose the date in column O first?
No. MAX(M13:O13) selects the latest numeric date regardless of which column contains it. Dates stored as text are ignored.
How can I include a follow-up from exactly two days ago?
Change MAX(M13:O13)<TODAY()-2 to MAX(M13:O13)<=TODAY()-2. The formula will then return the closing date when the latest follow-up was exactly two days ago.




