Dynamic Conditional Formatting for Duplicate Values in Column

muhleebbin

Active Member
Joined
Sep 30, 2017
Messages
252
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi,

I have the traditional conditional format for finding duplicates using the formula rule in conditional formatting "=COUNTIF($A$4:$A$3000,$A4)>1". Is there a way to make this dynamic where it fits the data that varies month to month. As it currently is, all rows are highlighted below the last row of valid data and it's just bugging me :p. This month filled to row 259 but last month it filled to row 1267 and will vary each month.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Is it because it is highlighting all of the blank rows as duplicates?
If so, a simple modification to your current formula will handle that, i.e.
Excel Formula:
=AND(COUNTIF($A$4:$A$3000,$A4)>1,$A4<>"")
 
Upvote 0
Solution
Thank you very much, that worked like a charm! And yes, it was annoying me cause it was highlighting all the blank rows :ROFLMAO:
 
Upvote 0
You are welcome!
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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