Calculate Percentage of Valid Dates Excluding Blank Cells in Excel
Question details
Calculate the percentage of staff with valid (unexpired) training dates by comparing dates to today, ensuring blank cells are not counted in the total.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking staff training compliance and needing to determine the percentage of employees whose training expiration date is today or in the future.
- Observed behavior
- Requires a formula that counts dates greater than or equal to today, divides it by the total number of dates, and formats the result as a percentage without failing on blank cells.
Ensure your date column is correctly formatted as 'Date' values in Excel, as formulas will not accurately calculate dates stored as text.
Use COUNTIF and COUNT to Calculate Percentage
Combine the COUNTIF function to find valid future dates and the COUNT function to determine the total number of dates, ignoring completely blank cells.
The COUNT function is ideal for the denominator because it only counts cells containing numeric values (which includes dates) and naturally ignores blank cells.
The COUNTIF function handles the numerator by filtering the range for dates that are greater than or equal to the current date, using the TODAY() function.
Click on the cell where you want the final percentage result to appear (for example, B88).
Type the formula =COUNTIF($B$2:$B$86,">="&TODAY())/COUNT($B$2:$B$86) and press Enter. Be sure to adjust the range ($B$2:$B$86) to match the exact location of your dates.
Select the cell with the calculated decimal result, go to the Home tab on the ribbon, and click the '%' (Percentage Style) button to display it correctly.

Calculate Complex Formulas Easily with WPS Spreadsheet
WPS Spreadsheet offers full compatibility with standard Excel formulas like COUNTIF and TODAY(), making it simple to manage HR data, track training records, and calculate compliance percentages accurately.
- 1. Open your document: Launch WPS Spreadsheet and open the file containing your staff training records.
- 2. Apply the calculation: Select the target cell and enter the formula =COUNTIF(Range,">="&TODAY())/COUNT(Range), selecting your actual data range.
- 3. Format the result: Click the Percentage (%) icon located in the Home tab to format the decimal as a compliance rate.

Frequently Asked Questions
Why does my formula return an error or an incorrect count?
This usually happens if the dates are stored as text instead of actual date values. Select your dates, right-click, choose 'Format Cells', and ensure they are set to 'Date'. You may need to re-enter them or use the 'Text to Columns' tool to convert them properly.
How does the COUNT function handle blank cells?
The standard COUNT function only counts cells containing numbers (and dates, which Excel stores as serial numbers). It automatically ignores empty cells or text strings, making it perfect for the denominator in this calculation without needing extra logic.
Can I check for a specific target date instead of TODAY?
Yes. You can replace TODAY() in the formula with a specific date. For example, to check against January 1st, 2024, use =COUNTIF(B2:B86, ">=1/1/2024")/COUNT(B2:B86), or point to a cell containing your target date like ">="&C1.




