Google表格:有没有办法通过一个公式计算实体的数量并按权重求和?
https://docs.google.com/spreadsheets/d/1hY-aDlpUyKfX24TUHVzn0IBqTE8hLQBDYG7frRUNc1I
={"ANIMAL","ANIMAL_COUNT","ANIMAL_COUNT_SUMM_WEIGHT";
ARRAYFORMULA({
UNIQUE(FILTER(B2:B,B2:B <>"")),
ARRAYFORMULA(COUNTIF(B2:B,UNIQUE(FILTER(B2:B,B2:B <>"")))),
ARRAYFORMULA(COUNTIF(B2:B,UNIQUE(FILTER(B2:B,B2:B <>""))))*SWITCH(ARRAYFORMULA(COUNTIF(B2:B,UNIQUE(FILTER(B2:B,B2:B <>"")))),"cat",E2,"dog",E3,"lion",E4)
})}