category如果放在B2
COUNT(GREPARRAY(SPLIT(JOINARRAY(B2[!0],','),','),item='A' ) )
COUNT(GREPARRAY(SPLIT(JOINARRAY(B2[!0],','),','),item='B' ) )
COUNT(GREPARRAY(SPLIT(JOINARRAY(B2[!0],','),','),item='C' ) )
COUNT(GREPARRAY(SPLIT(JOINARRAY(B2[!0],','),','),item='D' ) )