Formula Errors

Use the Latest Follow-Up Date in an Excel IF Formula

Adam DavisAdam Davis Nov 18, 2026 869 views

Question details

Calculate a closing date using the most recent follow-up date rather than always using the first attempt.

Use the Latest Follow-Up Date in an Excel IF Formula
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.
Before you start

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.

Solution 1Recommended

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.

1
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,""),"").

2
Format the result

Select the result cell and choose Home > Number Format > Short Date, or another date format.

3
Apply it to other rows

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 MAX with IF to Calculate from the Latest Follow-Up
How the threshold works: A follow-up exactly two days before today does not pass the <TODAY()-2 test. The formula returns a blank if the status differs, no numeric dates are present, or the latest date is not old enough.
Calculate follow-up dates in WPS

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. 1. Open the workbook: In WPS Spreadsheets, select Open and choose the Excel workbook containing your follow-up records.
  2. 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. 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. 4. Save the workbook: Choose File > Save As and select XLSX if you want to keep the workbook in Excel format.
Calculate from the latest follow-up date across multiple columnsOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet formulas and date formattingCopy the formula down for multiple records
microsoft office alternative - wps office

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.