[英]Excel Conditional formatting highlight the bottom 3 values in colum C for each unique value in column A
This is just an example, but I have 3 columns. 这只是一个示例,但是我有3列。 Name, Level and Impact. 名称,级别和影响。 What I am trying to do is create a conditional formatting so the bottom 3 values in the impact column are highlighted for each unique value of Name and level combined (so =Name&Level would be my unique identifier). 我想做的是创建一个条件格式,以便对Name和level组合的每个唯一值突出显示影响列中的后3个值(因此= Name&Level是我的唯一标识符)。 Is this even possible? 这有可能吗? below is a sliver of sample data to paint a clearer picture. 下面是一小部分示例数据,用于绘制更清晰的图片。
So one example would be these rows being highlighted for Eric2 因此,一个示例是针对Eric2突出显示这些行
Name Level Impact
Jack 1 -0.17
Barry 1 -0.16
Janice 2 -0.10
Barry 3 -0.08
Janice 4 -0.07
Eric 4 -0.07
Janice 1 -0.05
Eric 2 -0.04 <--Highlight
Jack 2 -0.04
Lisa 3 -0.04
Lisa 3 -0.04
Lisa 4 -0.03
Barry 2 -0.03
Jack 4 -0.03
Janice 1 -0.03
Janice 1 -0.03
Eric 2 -0.02 <--Highlight
Barry 2 -0.02
Eric 4 -0.02
Eric 4 -0.02
Barry 3 -0.02
Eric 4 -0.02
Janice 2 -0.02
Eric 1 -0.02
Eric 4 -0.02
Janice 3 -0.02
Eric 2 -0.02 <--Highlight
Eric 2 -0.02 <--Highlight
Thanks! 谢谢!
=IFERROR(C2<=SMALL(IF(ROW($C$2:$C$33)-1=MATCH(IF(A2&B2=$A$2:$A$33&$B$2:$B$33,$C$2:$C$33),IF(A2&B2=$A$2:$A$33&$B$2:$B$33,$C$2:$C$33),0),IF(A2&B2=$A$2:$A$33&$B$2:$B$33,$C$2:$C$33)),3),TRUE())
为我工作。
At risk of over-simplifying, if OP is confident that all the impact values are distinct values (at least within a particular name and level) then it would be enough just to count how many values there are less than the current one. 冒着过分简化的风险,如果OP确信所有影响值都是不同的值(至少在特定名称和级别内),那么仅计算少于当前值的值就足够了。
=COUNTIFS($A$2:$A$10,$A2,$B$2:$B$10,$B2,$C$2:$C$10, "<"&$C2)<3
On the other hand if there is a possibility of ties and OP wanted to highlight all rows corresponding to bottom 3 distinct values, could use this 另一方面,如果有联系的可能性,OP希望突出显示对应于底部3个不同值的所有行,则可以使用此
=SUM(--(FREQUENCY(IF(($A$2:$A$10=$A2)*($B$2:$B$10=$B2)*($C$2:$C$10<$C2),$C$2:$C$10),$C$2:$C$10)>0))<3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.