Use Excel IF and EDATE to Calculate Training Due Dates by Category
Question details
Calculate a training due date for Staff and display NA for Officers using an Excel formula.

- 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.
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.
Combine IF and EDATE to calculate Staff training due dates
Use this formula when Staff need a calculated date and Officers should display NA.
Click the cell where you want the training due date or NA to appear.
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.
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.

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. Open the worksheet: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 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. 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. Apply the formula to other rows: Drag the result cell's fill handle down, then use Save to save the workbook.

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.




