Count & if Across All Sheets

Cristinky420

New Member
Joined
Feb 13, 2019
Messages
17
Good day!

Looking for some help here please :)

I have a workbook, with sheets Metrics, Master, numbered sheets 0001-0076 and Last sheet on the workbook is "Lists". Sheets 0077-1000 will be added at a later date.

I'm looking to pull data from other sheets into my Metrics sheet.

I have a date range on my Metrics sheet - Start Date is B2, End Date is B3.
My numbered sheets have Dates in A5:A5000 and sometimes there is an "x" in the adjacent B cell.

Using my range of numbered sheets (0001:0076), if the date A5:A5000 on that sheet falls within the date range specified in Metrics!B2&B3, I would like it to count the "x" in B5:B5000 in that same row.

Thank-you in advance for your help!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I assumed that the number of the highest sheet is in B5, if so, you can use this array formula:

Code:
=SUM(COUNTIFS(INDIRECT(TEXT(ROW(INDIRECT("1:"&B5)),"0000")&"!$A$5:$A$5000"),">="&B2,INDIRECT(TEXT(ROW(INDIRECT("1:"&B5)),"0000")&"!$A$5:$A$5000"),"<="&B3,INDIRECT(TEXT(ROW(INDIRECT("1:"&B5)),"0000")&"!$B$5:$B$5000"),"X"))

Confirm this with Control+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top