I have a formula in the destination workbook using countifs, it works well .... as long as the source workbook is open, otherwise it fails. I know that countifs doesn't work across closed workbooks.
So I want to convert it to sumproduct, which I know works across closed workbooks. I am having an issue converting it to work as expected.
I think that just an extra set of eyes will help clear any issues up.
Here is my countifs formula, which is being confirmed with CSE.
I have converted countifs to sumproduct in the past but I seem to be messing up on something.
This is what I have as my countifs formula from above converted to sumproduct. I am confirming with CSE.
For some reason, I can't get it to work correctly. I don't get the expected output.
Any ideas or thoughts? Did I miss something?
-Spydey
So I want to convert it to sumproduct, which I know works across closed workbooks. I am having an issue converting it to work as expected.
I think that just an extra set of eyes will help clear any issues up.
Here is my countifs formula, which is being confirmed with CSE.
Code:
=IF(COUNTIFS('SourceWorkbook.xlsx'!Person,$E2,'SourceWorkbook.xlsx'!Location,$E3,'SourceWorkbook.xlsx'!Type,{"*Basketball*","*BBall*"})=0,0,COUNTIFS('SourceWorkbook.xlsx'!Person,$E2,'SourceWorkbook.xlsx'!Location,$E3,'SourceWorkbook.xlsx'!Type,{"*Basketball*","*BBall*"},'SourceWorkbook.xlsx'!Days,">="&0,'SourceWorkbook.xlsx'!Days,"<="&30))
I have converted countifs to sumproduct in the past but I seem to be messing up on something.
This is what I have as my countifs formula from above converted to sumproduct. I am confirming with CSE.
Code:
=IF(SUMPRODUCT(('SourceWorkbook.xlsx'!Person=$E2)*('SourceWorkbook.xlsx'!Location=$E3)*('SourceWorkbook.xlsx'!Type={"*Basketball*","*BBall*"}))=0,0,SUMPRODUCT(('SourceWorkbook.xlsx'!Person=$E2)*('SourceWorkbook.xlsx'!Location=$E3)*('SourceWorkbook.xlsx'!Type={"*Basketball*","*BBall*"})*('SourceWorkbook.xlsx'!Days>=0)*('SourceWorkbook.xlsx'!Days<=30)))
For some reason, I can't get it to work correctly. I don't get the expected output.
Any ideas or thoughts? Did I miss something?
-Spydey