如果筛选行每个行业中费用最高的前三个
请求各位大侠,如图,想筛选股票里每个行业,研发费用最高的三个.
不胜感激. =IF(COUNTIFS(A:A,A2,C:C,">"&C2)<3,"保留","") D2=IF(SUMPRODUCT(($A$2:$A$787=A2)*($C$2:$C$787>C2))+1<4,"保留","")下拉。 如果每个行业都是从大到小排好序,可以以下公式。
=IF(COUNTIF(A$2:A2,A2)<=3,"保留","")
=IF(C2>=LARGE(IF($A$2:$A$787=A2,$C$2:$C$787,0),3),"保留","") 数组下拉 太牛了,谢谢大佬 =IF(C2>=LARGE(FILTER($C:$C,$A:$A=$A2),IF(COUNTA(FILTER($C:$C,$A:$A=$A2))<3,COUNTA(FILTER($C:$C,$A:$A=$A2)),3)),"保留","")
365的公式,不用事先排序 数据透视表,筛选前3
我也首先想到了透视表 我怎么找不到有前三的选项呀