This is just an example, but I have 3 columns. 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). 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
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.
=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
=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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.