The following formula counts the various pairs of values that appear in file ‘[2021.xlsb] and if they are equal to cell ‘[2021.xlsb]Fri 2,3,4!$B$5) it will return the value “x”:
=IF(COUNTIFS('[2021.xlsb]Fri 2,3,4'!$H$5:$H$49,$C9,'[2021.xlsb]Fri 2,3,4'!$I$5:$I$49,$D9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$J$5:$J$49,$C9,'[2021.xlsb]Fri 2,3,4'!$K$5:$K$49,$D9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$L$5:$L$49,$D9,'[2021.xlsb]Fri 2,3,4'!$M$5:$M$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$N$5:$N$49,$D9,'[2021.xlsb]Fri 2,3,4'!$O$5:$O$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$P$5:$P$49,$C9,'[2021.xlsb]Fri 2,3,4'!$Q$5:$Q$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$R$5:$R$49,$C9,'[2021.xlsb]Fri 2,3,4'!$S$5:$S$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5),"x","")
However since I can using countifs with this formula, it does not execute unless the file ‘[2020.xlsb] is open. How would this formula look using Sumproduct that would allow me to still execute while the file is closed?
=IF(COUNTIFS('[2021.xlsb]Fri 2,3,4'!$H$5:$H$49,$C9,'[2021.xlsb]Fri 2,3,4'!$I$5:$I$49,$D9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$J$5:$J$49,$C9,'[2021.xlsb]Fri 2,3,4'!$K$5:$K$49,$D9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$L$5:$L$49,$D9,'[2021.xlsb]Fri 2,3,4'!$M$5:$M$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$N$5:$N$49,$D9,'[2021.xlsb]Fri 2,3,4'!$O$5:$O$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$P$5:$P$49,$C9,'[2021.xlsb]Fri 2,3,4'!$Q$5:$Q$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5)+COUNTIFS('[2021.xlsb]Fri 2,3,4'!$R$5:$R$49,$C9,'[2021.xlsb]Fri 2,3,4'!$S$5:$S$49,$E9,'[2021.xlsb]Fri 2,3,4'!$AB$5:$AB$49,'[2021.xlsb]Fri 2,3,4'!$B$5),"x","")
However since I can using countifs with this formula, it does not execute unless the file ‘[2020.xlsb] is open. How would this formula look using Sumproduct that would allow me to still execute while the file is closed?