I have this code that works for the first part, I mean to highlight the duplicates in the column "B", for two different sheets, in an active worksheet. I have more than two worksheets, but I posted the code to look more simple.
And I wanted to make it work for two columns for each sheet. I don't know how to add for one more column (my other column is "F")... but I added in the code above an identical line as this:
So far so good... now the code finds the duplicate values in both columns, "B" and "F".
My problem is that in the F column the values are the result of some formula. Sometimes the cells look empty (blank), but there is a formula there. The above code considers these apparently blank cells also duplicates and colors them. I need it to color the duplicates only if there is a visible value in those cells. I have seen on the net I should use the functions ISBLANK or ISEMPTY with true or false, to get the second condition fulfilled. But it is beyond my knowledge to write the new "if" function.
Therefore... Please help me!
Bookmarks