Calculation Issues

How to Calculate the Percentage of Users Who Completed an Action in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 11, 2026 869 views

Question details

The user wants to calculate the percentage of users who have completed at least one specific action or activity.

How to Calculate the Percentage of Users Who Completed an Action in Excel
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.
Before you start

Ensure your data is organized in columns, with one column listing all users and another column containing the count of their completed actions.

Solution 1Recommended

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.

1
Select a blank cell

Click on the cell where you want the final percentage to appear.

2
Enter the formula

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.

3
Format as percentage

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 COUNTIF and COUNTA to Calculate Percentage
Data Range Adjustment: Make sure the ranges in the formula exactly match the rows of your dataset to avoid calculation errors.
Calculate Data Easily with WPS Spreadsheet

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. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the user activity data.
  2. 2. Apply the formula: Select a target cell and input `=COUNTIF(B2:B100,">0")/COUNTA(A2:A100)`.
  3. 3. Format the result: Navigate to the Home tab and click the Percentage icon to format your calculated value.
Fully compatible with Microsoft Excel formulas and functionsBuilt-in percentage formatting tools for quick data visualizationLightweight and fast performance for large datasetsFree to use with a familiar, user-friendly interface
microsoft office alternative - wps office

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.