Finding the duplicates and errors.

kishorkhanal

Active Member
Joined
Mar 23, 2006
Messages
434
I have text and number values in random order in column A. In column E I have same values in A but in different order. I have to manually type both of these values. I want to format cells in column E so that if I type any values other than A, the cell should fill with red and if any value duplicates in either column A or E then the duplicated cells should fill with yellow. Any suggestions.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

marka87uk

Board Regular
Joined
Mar 24, 2007
Messages
247
For duplicates I would do something like this:

=COUNTIF(A:A,E1)>1

That'll put a TRUE or FALSE in the column depending on whether the value in E is in A or not. Then you can use conditional formatting to format all cells with the value TRUE as yellow, and all as FALSE with red. :)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,095
Messages
5,768,053
Members
425,451
Latest member
JohnBrooksBiddle

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
Top