Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to use countif to calculate the percentage in Excel?

doc-count-percentage-1

For example, I have a summary report of a research paper, and there are three options A, B, C, now I want to calculate the percentage of each theses three options. That is to say, I need to know the option A accounts for the percentage of all options. This article, I will talk about how to get the percentage of a specific option in a range.

Countif and calculate the percentage of a specific value with formula


Advanced Combine Rows(Combine duplicate rows and merge or do some calculations of corresponding values ):

With Kutools for Excel’s Advanced Combine Rows utiltiy, you can quickly combine multiple duplicate rows into one record based on key columns, and it also can apply some calculations such as sum, average, count and so on for other columns.

1. Specify the key column that you want to combine other column based on;

2. Choose the separator or other calculations for your combined data.

doc advanced combine rows 1


arrow blue right bubble Countif and calculate the percentage of a specific value with formula


The COUNTIF and COUNTA functions can be combined to get the percentage of a specific value in a range of data in Excel. Take the above data for example, you can quickly find the percentage of a specific option with following formula.

1. Enter this formula: =COUNTIF($B$2:$B$16,D2)/COUNTA($B$2:$B$16) into your specified cell, and press Enter key, and then you will get a decimal number as following screenshot shown:

doc-count-percentage-2

2. Select this cell, and click Home > Percent Style to convert the decimal number to percentage.

doc-count-percentage-3

3. And then drag the fill handle to the cells that you want to apply this formula, and the percentage of each option has been calculated as follows:

doc-count-percentage-4

Note: In the above formula, B2:B16 is the data range that you want to use, and D2 is the criteria that you want to calculate its percentage.


Related articles:

How to countif with multiple criteria in Excel?

How to countif a specific value across multiple worksheet?


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.