Conditional Formatting: can't highlight all duplicate instances

Limone

Board Regular
Joined
Dec 20, 2018
Messages
57
Hi everyone.

I've got a formula that's supposed to highlight every duplicate in a column, except for the "F" character. My problem is that only the first instance of a duplicate value gets highlighted unless I type the COUNTIFS range as an absolute reference and I don't get why.

The reason I'd like to get Excel to highlight every duplicate while using a relative reference is that the conditional formatting rule will have to be dragged both down and to the right so that I can cover every part of the table without using a costumized formula for every column (which with the table being a calendar are as many as the number of days in a month).

Here are my formulas.

=COUNTIFS($D$8:$D$16;D8;$D$8:$D$16;"<>F")>1

or

=COUNTIFS(D8:D16;D8;D8:D16;"<>F")>1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Th
e reason I'd like to get Excel to highlight every duplicate while using a relative reference is that the conditional formatting rule will have to be dragged both down and to the right so that I can cover every part of the table without using a costumized formula for every column
Try locking JUST the row part of the range reference in your formulas, and not the column part, i.e. D$8 (instead if $D$8).

It is important to understand "mixed" range references.
See: https://www.excel-easy.com/functions/cell-references.html
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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