Forum Discussion
Difficulty in formulas
=SUM((COUNTIFS(OFFSET($A$2:$K$2,ROW($1:$8)-1,0),P9)>0)*(COUNTIFS(OFFSET($A$2:$K$2,ROW($1:$8)-1,0),Q9)>0))
This formula works in my sheet. The formula must be entered as an arrayformula with ctrl+shift+enter if someone doesn't work with Office 365 or Excel for the web or Excel 2021.
- OliverScheurichApr 19, 2024Gold Contributor
=SUM((COUNTIFS(OFFSET($A$2:$K$2,ROW($1:$14963)-1,0),R6)>0)*(COUNTIFS(OFFSET($A$2:$K$2,ROW($1:$14963)-1,0),S6)>0))
I've adjusted the formula according to the actual size of your data. The formula must be entered as an arrayformula with ctrl+shift+enter if you don't work with Office 365 or Excel for the web.
=MAP(R6:R13,S6:S13,LAMBDA(fruit1,fruit2,SUM(BYROW(A2:K14964,LAMBDA(x,(COUNTIFS(x,fruit1)>0)*(COUNTIFS(x,fruit2)>0))))))
However if you work with Office 365 or Excel for the web you can apply the LAMBDA and MAP formula.