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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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