|  

» Counting the Number of Values from Multiple Worksheets that Match Criteria

Problem:

Counting the total number of values from the range A1:B3 on Sheets 1, 2 & 3 that are greater than the criteria specified in cell A2.

Solution:

Use the SUM, COUNTIF, and INDIRECT functions as shown in the following formula:
=SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!A1:B3"),">"&A2))


Rate This Tip
12 34 5
Rating: 2.71     Views: 10932
Re: Counting the Number of Values from Multiple Worksheets that Match Criteria
Basketnarb
I am trying to do counting in multiple worksheets that are named by the date (6-24, 6-25, ect.). A new worksheet will be added every day. I want the data to be compiled on worksheet at the end. I work at a camp and am trying to be able to know how many times each bunk has played a sport.
I tried to take the formula:

=SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!A1:B3"),">"&A2))

and change it for my specific situation but it comes back as an error.

=SUM(COUNTIF(INDIRECT("Sheet"&{'6-24'!:LAST!}&"!C4:O4"),"&1-a))

6-24 is the name of the first sheet which will never change and LAST is the name of the last sheet which will never change. C4:O4 are the range of cells on each sheet that I would like to analyze and I want to count how many times it say 1-a in those cells.

Can anyone tell me where I'm going wrong?
Re: Counting the Number of Values from Multiple Worksheets that Match Criteria
DonkeyOte
[I]Your post does not comply with Rule [B]2[/B] of our Forum [/I][URL="http://www.excelforum.com/forum-rules/642590-forum-rules.html"][COLOR=#800080]RULES[/COLOR][/URL]. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Also, please ensure you post in a relevant forum ... this thread is now closed.
Click here to post comment
For Registered Users
Name
Comment Title
Comments