How to Calculate the Percentage of Users Who Completed an Action in Excel
Question details
The user wants to calculate the percentage of users who have completed at least one specific action or activity.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing user activity data to find the completion rate of a specific action, such as publishing a post.
- Observed behavior
- Needs a formula combining COUNTIF and COUNTA to determine the percentage of active users out of the total user base.
Ensure your data is organized in columns, with one column listing all users and another column containing the count of their completed actions.
Use COUNTIF and COUNTA to Calculate Percentage
Combine the COUNTIF and COUNTA functions to divide the number of active users by the total number of users.
This method counts users whose activity count is greater than zero and divides that result by the total number of users. It calculates the percentage of users who completed at least one action, rather than a usage-weighted percentage.
Click on the cell where you want the final percentage to appear.
Type the formula `=COUNTIF(B2:B100,">0")/COUNTA(A2:A100)`. Replace `B2:B100` with the range containing the activity counts, and `A2:A100` with the range containing the user names or IDs.
Press Enter to get the decimal result. Then, go to the Home tab and click the '%' (Percentage Style) button in the Number group to format the result as a percentage.

Use WPS Spreadsheet for Advanced Data Analysis
WPS Spreadsheet provides full support for advanced formulas like COUNTIF and COUNTA, making it easy to calculate user completion rates and analyze your data efficiently.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the user activity data.
- 2. Apply the formula: Select a target cell and input `=COUNTIF(B2:B100,">0")/COUNTA(A2:A100)`.
- 3. Format the result: Navigate to the Home tab and click the Percentage icon to format your calculated value.

Frequently Asked Questions
What if my activity column contains text instead of numbers?
If the activity column contains text (like 'Yes' or 'Completed'), change the COUNTIF criteria to match that text. For example: `=COUNTIF(B2:B100,"Completed")/COUNTA(A2:A100)`.
Why is my formula returning a #DIV/0! error?
This error occurs if the COUNTA function returns zero, meaning the range you selected for total users is completely empty. Check your data range to ensure it includes the user data.
Can I calculate the percentage based on multiple conditions?
Yes, you can use the COUNTIFS function instead of COUNTIF to evaluate multiple criteria before dividing by the total count.
How do I calculate a usage-weighted percentage instead?
To calculate a usage-weighted percentage, you would sum the total actions using the SUM function and divide it by a different baseline, rather than just counting users who performed at least one action.




