Function Problems

Use Excel IF and EDATE to Calculate Training Due Dates by Category

Amos GikundaAmos Gikunda Dec 2, 2026 868 views

Question details

Calculate a training due date for Staff and display NA for Officers using an Excel formula.

Use Excel IF and EDATE for Training Due Dates by Category
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains employee categories, training dates, and month intervals used to determine training due dates.
Observed behavior
Staff rows should show a date calculated with EDATE, while Officer rows should display NA.
Before you start

Identify the cells containing the employee category, training date, and number of months to add. Make sure the training date is a valid Excel date and the month interval is numeric.

Solution 1Recommended

Combine IF and EDATE to calculate Staff training due dates

Use this formula when Staff need a calculated date and Officers should display NA.

1
Select the result cell

Click the cell where you want the training due date or NA to appear.

2
Enter the formula

Type =IF(A1="Staff",EDATE(B1,C1),"NA") in the cell or formula bar and press Enter. Replace A1 with the category cell, B1 with the training date cell, and C1 with the month interval cell.

3
Format and copy the result

If a Staff result appears as a number, select the result cell and choose Home > Number Format > Short Date. Drag the cell's fill handle down to apply the formula to other rows.

Combine IF and EDATE to calculate Staff training due dates
Other categories also return NA: The formula returns the text NA for every category other than Staff, including Officer. It does not return Excel's #N/A error.
Calculate dates in WPS Spreadsheets

Calculate training due dates with IF and EDATE in WPS Spreadsheets

Use IF and EDATE in WPS Spreadsheets to calculate due dates for Staff and display NA for other categories.

  1. 1. Open the worksheet: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Enter the formula: Click the result cell and enter =IF(A1="Staff",EDATE(B1,C1),"NA"), adjusting the cell references to match your worksheet.
  3. 3. Format the date: Select the result cell and use the Home tab's number format control to choose a date format if the result appears as a number.
  4. 4. Apply the formula to other rows: Drag the result cell's fill handle down, then use Save to save the workbook.
Calculate training due dates from a date and month interval.Open and edit Microsoft Excel XLSX and XLS files.Use familiar spreadsheet formulas and formatting tools.Use WPS Office for free.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula show NA for a Staff member?

Check the category cell referenced by the IF formula for extra spaces or a different spelling. The text must match Staff, although Excel does not distinguish between uppercase and lowercase in this comparison.

Why does the calculated date appear as a number?

Excel stores dates as serial numbers. Select the result cell and choose Home > Number Format > Short Date to display it as a date.

Does the formula return NA only for Officers?

No. =IF(A1="Staff",EDATE(B1,C1),"NA") returns NA for every category other than Staff.

What happens if the training date is not valid?

EDATE may return a #VALUE! error if the training date is not recognized as a date. Check the referenced date cell and enter a valid date before calculating the due date.