Comparing columns

bigbearbricktop

New Member
Joined
Nov 29, 2010
Messages
15
Afternoon

I wonder if anyone can help me, what I need to do seems simple but I cant work it out :(

I have two columns in Excel and I need to check to make sure that all the ref numbers in Column A are in Column C. If not I need them to be highlighted or a different colour. I wouldnt expect them to be in the same row, the ref number could be anywhere in Column C. For instance I wouldnt expect A1 to contain same ref number as C1 but I would expect A1's ref number to appear somewhere in Column C.

How could I do this?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try selecting column A then using Conditional Format with the formula

=ISERROR(MATCH(A1,C:C,0))

and set a suitable fill colour.
 
Upvote 0
My guess is that you will probably want to exclude any blank cells from the formatting, so my suggestion is:

Select A1:A?? and apply the Conditional Formatting shown.

If you need further direction, please advise what version of Excel you are using.

Excel Workbook
ABC
1aa
2bx
3y
4cf
5db
6eq
7fa
8d
9
10
Compare Columns
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =AND(A1<>"",COUNTIF(C:C,A1)=0)Abc
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

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