Making Conditional Formatting ignore hidden rows

qnguyen

New Member
Joined
Aug 7, 2019
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I have a document with multiple filters that cause multiple rows to be hidden. The visible data looks similar to this:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A [/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]Row 11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Row 13[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]

I am trying to create a conditional formatting to highlight the highest 3 numbers in column A. The problem I am having is that sometimes the highest numbers are in hidden rows, and these get highlighted instead. How do I make it so only the top 3 non-hidden numbers are highlighted? In the above example, A3, A5, and A13 should be highlighted even if the hidden rows have larger values.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
To expand on arthurbr's suggestion a little ..
But first, since you have filters, your sample data can't be quite correct as you would have headings in row 1 with data starting in row 2.

Anyway, try this. With the filter set to 'Select All' ..
1. Select from A2 down to the end of the column A data
2. In Conditional Formatting, use use a formula to determine which cells to format & use this formula, adjusting the A$30 to match your actual range
=A2>=AGGREGATE(14,5,A$2:A$30,3)
3. Set your desired format then try filtering the data.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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