Can I base VBA\Formula off of conditional formatted cell?

L

Legacy 296647

Guest
I have a column that looks for duplicates, and makes them fill color and font color red.

What I would like to do if possible is in another column look at conditional formatted column and return text\values or anything that has a duplicated cell which is fill color red and font color red.

Is this even possible being that I am using conditional formatting? This is not manual coloring which I know how to do by looking up 255 for red color.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You don't need VBA.

If your data is in column A starting on row 2 and ending on row 999, enter the following formula in cell B2:
=IF(ISNA(VLOOKUP(A2,A3:A$999,1,FALSE)),"","DUPLICATE")
That will give you the 1st instance of the duplicate.

If you want to find all duplicates, then use the following:
=IF(ISNA(VLOOKUP(A2,A3:A$999,1,FALSE)),"","DUPLICATE BELOW")&IF(ISNA(VLOOKUP(A2,A$2:A2,1,FALSE)),"","DUPLICATE ABOVE")


Whichever formula you use, copy from B2 to B3:B999
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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