有什么办法可以用一个公式计算实体的数量和按权重求和?

时间:2019-08-06 13:31:21

标签: google-sheets-formula

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)
})}

0 个答案:

没有答案