How to Track Training Status Using IF and COUNTIF in Excel
Question details
The user needs to create an Excel training matrix that accurately categorizes different training statuses (not required, required but incomplete, in progress, and complete).

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Building a dynamic training matrix to track multiple completion states across different requirements.
- Observed behavior
- The goal is to use distinct fields to identify requirements rather than mixing dates and text (like 'NR' for Not Required), enabling accurate percentage calculations and distinct conditional formatting.
Ensure your training spreadsheet separates the 'Requirement Status' (e.g., Required vs. Not Required) from the 'Completion Status' (e.g., Dates completed or checkboxes checked) into different columns.
Use IF and COUNTA to Calculate Completion Percentages
This solution prevents the matrix from calculating a completion percentage when training is marked as 'Not Required', ensuring accurate status tracking.
By nesting a COUNTA function inside an IF statement, you can instruct Excel to check if a specific course is required first. If it isn't required, it returns a blank cell; if it is required, it counts the completed documents and divides them by the total number of required documents.
In your spreadsheet, designate a specific cell (for example, B3) to indicate whether the training is required. Type 'Required' or 'Not Required' in this cell.
Select the cell where you want the completion percentage to appear. Enter the formula: =IF(B3<>"Required","",COUNTA(C3:C5)/3). Adjust 'C3:C5' to the range containing the completed training dates and '3' to the total number of required documents.
Select the cell with the formula, go to the Home tab, and click the '%' icon in the Number group to display the decimal result as a percentage.

Apply Conditional Formatting to Visualize Status
Use conditional formatting to automatically color-code the training status (e.g., green for complete, orange for incomplete) based on the calculated percentages.
Hide Zero Values Using Custom Number Formatting
If your formulas occasionally result in 0% when you would prefer a blank cell, custom number formatting can visually hide zeros without changing the underlying formula.
Build Dynamic Training Matrices Seamlessly with WPS Office
WPS Spreadsheet fully supports advanced logical formulas like IF, COUNTIF, and robust Conditional Formatting features. You can easily build, manage, and color-code comprehensive employee training matrices completely for free.
- 1. Open your matrix in WPS Spreadsheet: Launch WPS Office, select Spreadsheet, and either open your existing training tracker or create a new blank workbook.
- 2. Input the logical tracking formulas: Use exactly the same =IF() and =COUNTA() functions as you would in Excel to calculate completion percentages.
- 3. Add Conditional Formatting: Go to the Home tab, select Conditional Formatting, and define your color rules to easily identify who is 'In Progress' or 'Complete'.

Frequently Asked Questions
How can I calculate completion if I use checkboxes instead of dates?
If you link Form Control checkboxes to specific cells, they return TRUE or FALSE. You can use the COUNTIF function, like =COUNTIF(C3:C5, TRUE), to count how many checkboxes are ticked, and divide by the total number of required courses.
Why does my IF formula return a #DIV/0! error?
This error occurs if the denominator in your division (the total number of required documents) is zero or references an empty cell. You can prevent this error from displaying by wrapping your formula in an IFERROR function, such as =IFERROR(your_formula, "").
Can I use COUNTIFS to check both the requirement status and completion dates simultaneously?
Yes. COUNTIFS allows you to check multiple criteria across multiple ranges. For example, =COUNTIFS(StatusRange, "Required", DateRange, "<>"&"") will only count entries where the course is marked as 'Required' and the completion date cell is not empty.




