Matching two cells

dave_br

Board Regular
Joined
Aug 23, 2010
Messages
76
Is there a formula that will automaticlaly highlight any cells containing the same barcode?

will this be a conditional format?

my problem is i have a workbook of 1200 lines and dont really want to manually check them!

dave
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Dave

Yes you can certainly do this with Conditional Formatting, whether or not your data is sorted.

If you have Excel 2007+ select the column then Home ribbon|Conditional Formatting|Highlight Cells Rules|Duplicate Values...|OK
Format|Conditional Formatting...|Condition 1|Formula is:|

If you have an earlier version, select the data (A1:A7 for me) then Format|Conditional Formatting...|Condition 1|Formula is: =COUNTIF(A$1:A$7,A1)>1|Format>>|Fill tab|choose a colour|OK|OK

Excel Workbook
A
1123abc
2456def
3abc456
4pqy789
5qbc123
6pqy789
7456def
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =COUNTIF(A$1:A$7,A1)>1Abc
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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