## Summary

To calculate the percentage complete for a project with a list of tasks, you can use a simple formula based on the COUNTA function. In the example shown, the formula in F6 is:

``````=COUNTA(C5:C11)/COUNTA(B5:B11)
``````

## Generic formula

``=COUNTA(range1)/COUNTA(range2)``

## Explanation

In this example if a task is marked "Done", then it is considered complete. The goal is to calculate the percent complete for the project by showing the ratio of complete tasks to total tasks, expressed as a percentage. The formula in F6 is:

``````=COUNTA(C5:C11)/COUNTA(B5:B11)
``````

At the core, this formula simply divides tasks complete by the total task count:

``````=complete/total
``````

which is then formatted as a percentage. To count completed tasks, we count non-blank cells in the range C5:C11 with the COUNTA function:

``````=COUNTA(C5:C11) // returns 4
``````

Unlike the COUNT function, which counts only numeric values, COUNTA will count cells that include numbers or text.

To count total tasks, we count non-blank cells in the range C5:C11, again with COUNTA:

``````COUNTA(B5:B11) // returns 7
``````

After COUNTA runs, we can simply the formula to:

``````=4/7 // 0.571428571428571
``````

Four divided by 7 results in the decimal number 0.571428571428571 which is displayed as 57% once the Percentage number format is applied. Author ### Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.