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 countif something is in selected cells in Excel?

In many cases, you may need to count if something is in selected cells, such as counting total numbers of all nonblank cells, or counting cells with specific text only. In this article, we will show you methods to solve these problems.

Countif all nonblank cells are in selected cells with formula

Countif all nonblank cells are in selected cells with Kutools for Excel

Countif specific text is in selected cells with formula

Countif specific text is in selected cell with Kutools for Excel


arrow blue right bubble Countif all nonblank cells are in selected cells with formula


You can use the following formula to count all nonblank cells in selected range in Excel. Please do as follows.

1. Select a blank cell for locating the result, enter formula =COUNTA(A1:E7) into the Formula Bar, and then press the Enter key. See screenshot:

doc countif someting is in cells 1

Note: A1:E7 is the range with nonblank cells you need to count. Please change it as you need.

Then you are getting the total number of all nonblank cells in specified range.


arrow blue right bubble Countif all nonblank cells are in selected cells with Kutools for Excel

If you want to count the total number of all nonblank cells as well as select them after counting, the Select Nonblank Cells utility of Kutools for Excel can help you.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select the range with the nonblank cells you want to count and select, then click Kutools > Select > Select Nonblank Cells. See screenshot:

doc countif someting is in cells 1

2. Then a Kutools for Excel dialog box pops up and shows you how many nonblank cells are in selected range, click the OK button to close it, then all nonblank cells are selected immediately.

doc countif someting is in cells 1

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


arrow blue right bubble Countif specific text is in selected cells with formula

If you just want to count cells with specific text or number in selected range, please apply the following formula.

1. As below screenshot shown, for counting cells which contain Apple in the Fruit column, please select a blank cell, enter formula =COUNTIF(A2:C12,"Apple") into the formula bar, and then press the Enter key to get the result.

doc countif someting is in cells 1

Note:

1. In the formula, A2:C12 is the range you will count the specific text inside, and Apple is the specific text you will count.


arrow blue right bubble Countif specific text is in selected cell with Kutools for Excel

The Select Specific Cells utility of Kutools for Excel can not only help you count cells with specific text, but also select them after counting. You can do as follows.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select the range with specific text cells you need to count, then click Kutools > Select > Select Specific Cells. See screenshot:

doc countif someting is in cells 1

2. In the Select Specific Cells dialog box, select the Cell or Entire row option in the Selection type section, and select Equals or Contains option in the first Specific type drop-down list, enter the specific text into the text box, then click the OK button. See screenshot:

doc countif someting is in cells 1

3. Then a dialog box pops up and tells you the total number of specific text cells, please click the OK button to close it. Then the specific cells are selected immediately in the specified range.

doc countif someting is in cells 1

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
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.