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:

Column A
Row 115
Row 324
Row 413
Row 532
Row 1112
Row 1320

<tbody>
</tbody>

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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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