COUNTIFS with SUMPRODUCT

mrbeanyuk

Board Regular
Joined
Nov 30, 2005
Messages
214
Office Version
  1. 365
Platform
  1. Windows
Good evening

I am trying to apply a COUNTIFS statement so that I can search through a range of sheets to confirm that criteria is met in column B and column Q then count. I have written the following and it returns 0 even though I know there are serials that match the criteria. Have I missed something in the following formula? Thanks very much!

Code:
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&$B$51:$B$67&"'!$B:$B"),D$44,(INDIRECT("'"&$B$51:$B$67&"'!$Q:$Q")),{"Future on Track";"Completed"}))
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Seems to be missing your Sheet references;

Code:
[COLOR=#333333]=SUMPRODUCT(COUNTIFS(INDIRECT([/COLOR]"'Sheet2:Sheet6'!$B$51:$B$67,$B:$B"[COLOR=#333333]),D$44,(INDIRECT([/COLOR]"'Sheet2:Sheet6'!$B$51:$B$67,$Q:$Q"[COLOR=#333333])),{"Future on Track";"Completed"}))[/COLOR]
 
Upvote 0
@ mrbeanyuk

1. Does D44 occur in column B of the relevant sheets? If not, a 0 result will obtain.

2. Does any of the pair "Future on Track" and "Completed" occur in column Q of the relevant sheets? If not, a 0 result will obtain.


Are either Future on Track or Completed stand-alone occurrences in column Q? If not, you might want to try:

=SUMPRODUCT(COUNTIFS(INDIRECT("'"&$B$51:$B$67&"'!B:B"),D$44,(INDIRECT("'"&$B$51:$B$67&"'!Q:Q")),{"*Future on Track*";"*Completed*"}))

where B51:B67 is assumed to list the relevant sheets.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,572
Members
453,054
Latest member
arz007

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