B3公式
=LET(a,UNIQUE(HSTACK(表1!$O$2:$U$4678,表1!$AD$2:$AD$4678)),b," "&SUBSTITUTE(TRIM(TAKE(a,,1)),","," , ")&" ",SUM((LEN(b)-LEN(SUBSTITUTE(b," "&TRIM($A3)&" ",)))/LEN(" "&TRIM($A3)&" ")))
C3公式
=LET(z,UNIQUE(HSTACK(表1!$O$2:$U$4678,表1!$AD$2:$AD$4678)),a,FILTER(z,MMULT(N(CHOOSECOLS(z,2,3,7)="是"),{1;1;1})),b," "&SUBSTITUTE(TRIM(TAKE(a,,1)),","," , ")&" ",SUM((LEN(b)-LEN(SUBSTITUTE(b," "&TRIM($A3)&" ",)))/LEN(" "&TRIM($A3)&" ")))
D3公式
=LET(z,UNIQUE(HSTACK(表1!$O$2:$U$4678,表1!$AD$2:$AD$4678)),a,FILTER(z,TAKE(z,,-1)=$D$1),b," "&SUBSTITUTE(TRIM(TAKE(a,,1)),","," , ")&" ",SUM((LEN(b)-LEN(SUBSTITUTE(b," "&TRIM($A3)&" ",)))/LEN(" "&TRIM($A3)&" ")))
E3公式
=LET(z,UNIQUE(HSTACK(表1!$O$2:$U$4678,表1!$AD$2:$AD$4678)),a,FILTER(z,MMULT(N(CHOOSECOLS(z,2,3,7)="是"),{1;1;1})*(TAKE(z,,-1)=$E$1)),b," "&SUBSTITUTE(TRIM(TAKE(a,,1)),","," , ")&" ",SUM((LEN(b)-LEN(SUBSTITUTE(b," "&TRIM($A3)&" ",)))/LEN(" "&TRIM($A3)&" ")))
|