Skip to main content

How to countif a specific value across multiple worksheets?

Author: Xiaoyang Last Modified: 2024-08-20

Supposing, I have multiple worksheets which contains following data, and now, I want to get the number of occurrence of a specific value “Excel” from theses worksheets. How could I count a specific values across multiple worksheet?

sample data 1 sample data 2 sample data 3 arrow right result

Countif a specific value across multiple worksheets with formulas

Countif a specific value across multiple worksheets with Kutools for Excel


  Countif a specific value across multiple worksheets with formulas

In Excel, there is a formula for you to count a certain values from multiple worksheets. Please do as follows:

1. List all the sheet names which contain the data you want to count in a single column like the following screenshot shown:

List all the sheet names

2. In a blank cell, please enter this formula: =SUMPRODUCT(COUNTIF(INDIRECT("'"&C2:C4&"'!A2:A6"),E2)), then press Enter key, and you will get the number of the value “Excel” in these worksheets, see screenshot:

enter a formual to countif a specific value across multiple worksheets

Notes:

1. In the above formula:

  • A2:A6 is the data range that you want to count the specified value across worksheets;
  • C2:C4 is the sheet names list which include the data you want to use;
  • E2 is the criteria that you want based on.

2. If there are multiple worksheets need to be listed, you can read this article How to List Worksheet Names in Excel? to deal with this task.

3. In Excel, you can also use the COUNTIF function to add the worksheet one by one, please do with the following formula: =COUNTIF(Sheet1!A2:A6,D2)+COUNTIF(Sheet10!A2:A6,D2)+COUNTIF(Sheet15!A2:A6,D2), (Sheet1, Sheet10 and Sheet15 are the worksheets that you want to count, D2 is the criteria that you based on), and then press Enter key to get the result. See screenshot:

another formula to countif a specific value across multiple worksheets


Countif a specific value across multiple worksheets with Kutools for Excel

If you have Kutools for Excel, with its Navigation pane, you can quickly list and count the specific value across multiple worksheet.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, lease do as follows:

1. Click Kutools > Navigation, see screenshot:

Click Kutools > Navigation of kutools

set options in the Navigation pane

2. In the Navigation pane, please do the following operations:

(1.) Click Find and Replace button to expand the Find and Replace pane;

(2.) Type the specific value into the Find what text box;

(3.) Choose a search scope from the Whithin drop down, in this case, I will choose Selected Sheet;

(4.) Then select the sheets which you want to count the specific values from the Workbooks list box;

(5.) Check Match entire cell if you want to count the cells match exact;

(6.) Then click the Find All button to list all the specific values from multiple worksheets, and the number of the cells are displayed at the bottom of the pane.

Download and free trial Kutools for Excel Now !


Related articles:

How to use countif to calculate the percentage in Excel?

How to countif with multiple criteria in Excel?

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, 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!