Conditional formatting issue

snewsome

New Member
Joined
May 12, 2015
Messages
41
Hey everyone, I'm having an issue with conditional formatting. I am using this formula, and it works great, only problem is blank cells are formatted as well. Any help would be appreciated...I'm basically having duplicates highlighted based off of another worksheet.

=SUMPRODUCT(--(G1=Sheet2!$U$1:$U$41))
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
would this help
Code:
=AND(G1<>"", SUMPRODUCT(--(G1=Sheet2!$U$1:$U$41)))
 
Upvote 0
would this help
Code:
=AND(G1<>"", SUMPRODUCT(--(G1=Sheet2!$U$1:$U$41)))

I was just about to respond to my first post. I added another CF rule to format cells that contain blank value, which I think has worked. Thanks so much!!
 
Upvote 0
would this help
Code:
=AND(G1<>"", SUMPRODUCT(--(G1=Sheet2!$U$1:$U$41)))

For some reason the "applied to" field when I use the CF formula updates to exclude cells after a certain point. If I apply the CF to say cell G3:G1500..and I start entering at cell 200, when I check the applied field, it updates to G3:G199, then if I enter in G200 through G210, the applied field will adjust to G3:G199,G211:G1500 which excluded returning a CF to the 10 cells I just entered?? Haven't seen this before, can anyone help how to lock the CF cells?
 
Upvote 0
It happens when you copy/paste, when you paste it takes the formatting of the original cell and overwrites CF. Are you copy/pasting or manually entering?
 
Upvote 0
So thats the problem - maybe when you paste do a "Special Paste": paste values only
 
Upvote 0

Forum statistics

Threads
1,214,586
Messages
6,120,402
Members
448,958
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