Couldnt get this to work in Google Sheets but appreciate itHow about:
=LET(a,HSTACK(A2:A8,FILTER(B2:F8,B1:F1="Active")),b,FILTER(a,CHOOSECOLS(a,1)="Active"),SUM(--(b="FALSE")))
Thank you. FYI in Google Sheets I needed to wrap this in an Arrayformula() function but it works perfectly.A shorter version.
Excel Formula:=SUM(--(A2:A8&B1:F1&B2:F8 = "ActiveActiveFALSE"))