Counting cells based on multiple criteria "between two dates and one other criteria" in closed workbook.

Lostchrono

New Member
Joined
Jun 30, 2014
Messages
3
Hello,

First time posting on MrExcel. You guys have been great by helping me just by Google searching but I am hoping that you can help me with a formula.

I am trying to count the criteria "Any cell that equals 10 in column K" between two dates in column A in a closed workbook. In the sheet I am using to count the closed workbook I am referencing the dates through cell CD3(12/28/2014) and CD4(1/3/2014).

=SUMPRODUCT(--('[Workbook2014.xlsx]2014'!$A:$A>=CD3),--('[Workbook2014.xlsx]2014'!$A:$A<=CD4),--('[SADIE2014.xlsx]2014'!$K:$K=10))

Before I used =SUMPRODUCT(--('[Workbook2014.xlsx]2014'!$K$2:$K$64=10)) but I really want to make this a global solution so I can reproduce it over several rows down and just have to change the column K value and date refrences.

Thank you in advance for all your help.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I accidentally referenced CD3 as 12/28/2014 instead of 12/28/2013. The code still looks the same however.

Code:
[COLOR=#333333]=SUMPRODUCT(--('[Workbook2014.xlsx]2014'!$A:$A>=CD3),--('[Workbook2014.xlsx]2014'!$A:$A<=CD4),--('[SADIE2014.xlsx]2014'!$K:$K=10))[/COLOR]

I am able to receive a value other than 0 now but it is slightly off from the original.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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