Excel pivot table 值作为逗号分隔的字符串

Excel pivot table value as comma separated string

我在 excel sheet 中关注 table。

Risk  Type1  Type2
R1     H       H
R2     L       M
R3     M       L
R4     M       M
R5     M       H
R6     L       L
R7     H       M
R8     L       L
R9     H       H
R10    L       M

我希望你使用 excel pivot table 并获得以下输出。

                      Type2     
            H         M           L
      H R1, R9    R7    
Type1 M R5        R4          R3
      L           R2, R10     R6, R8

你不能用主元 table 来做,但你可以从 here 下载一个函数并使用这样的数组公式:-

=stringconcat(",",IF(($B:$B=$E3)*($C:$C=F),$A:$A,""))