Highlight top values based on text in specific column

smide

Board Regular
Joined
Dec 20, 2015
Messages
162
Office Version
  1. 2016
Platform
  1. Windows
Hello.




In column B (B3:B600) of my Workbook I have a list of different towns (about 25 towns) and in column C (C3:C600) customer names.


In column F (F3:F600) there are buying prices for each customer.


I need to highlight (color red) cells with top FIVE customer names (column C) based on buying price value and town name for each town.


example.

ABCDEF
1
2
3Town1Name115
4Town1Name22
5Town1Name310
6Town1Name40
7Town1Name56
8Town1Name6 24
9Town1Name79
10Town2 (new town)Name8 7
11...........

<tbody>
</tbody>


highlighted top FIVE customer names for Town1 (based on values in column F): C3, C5, C7, C8 and C9
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try using conditional formatting with a formula like

=SUMPRODUCT(--($B$2:$B$101=$B2),--($F$2:$F$101>$F2))<5

The sumproduct counts how many rows with the matching town name have a bigger value in column F.
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top