Conditional Formatting in Excel Table and Ignore Blanks Not Working

LtCmdrData

Board Regular
Joined
Jan 24, 2018
Messages
58
Office Version
  1. 365
Platform
  1. Windows
I have an Excel Table and in column D if there is a duplicate value, I want to highlight the entire row. In the Conditional Formatting Rules Manager I have the formula =Countif($D$2:$D$77,$D2)>1. This works fine in formatting the entire row when there is a duplicate in column D. However, some cells in column D are empty and it is counting and formatting those rows also. How can I modify my formula to ignore the empty or blank cells and conditionally format only the rows that have non blank or non empty cells? The data in column D is text (the letter L followed by six digits). Thank you in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Update your Conditional Formatting Formula so that it looks like this:
Excel Formula:
=AND(Countif($D$2:$D$77,$D2)>1,$D2<>"")
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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