How to Compare 2 Columns

New Contributor


Would appreciate help on comparing column B to column A 

of these email addresses.


4 Replies

@Karen575 What would you like to compare and what outcome do you expect? At a glance, there are  no matching email addresses between A and B, just duplicates in B.


If you real lists are much longer and you want to identify mail addresses in B that exist in A, you could use VLOOKUP (or XLOOKUP) if your Excel version supports it.

best response confirmed by Karen575 (New Contributor)


Compare two columns quickly

In this tip, we will show you how two columns can be compared quickly and easily with one another without much detour.


Column A and column B serve as the starting point.

In order to determine the cells in column B that differ from column A, simply proceed as follows:


Select cell range A2: B9 (as an example)

Use the function key [F5] or the key combination [Ctrl] + [G] to open the Go to dialog box

Click the Contents button to open the Select Contents dialog box

Activate the Cell differences option there.


If you now exit the dialog box by clicking the OK button, Excel will mark all cells in column B that differ from column A.

If, for example, you change the font or background color of the selected lines, you will always see which cells do not match.

 However, this function does not differentiate between upper and lower case. However, spaces are taken into account when determining the differences.


It's even easier when there are numbers.

Comparison between A and B column if there are numbers, einach = A1-B1 in column C. If no zero then not equal.


But if you have done business at the end of my execution, here is a formula for your request.


Also attached is the file with the test.


Hope ... I'm almost certain that this will work on your mac too ... even if I don't have one to try it out.


I would be happy to know if I could help.



I know I don't know anything (Socrates)


* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Worked like a charm, thx, Nikolino!!
You are welcome
I was pleased to be able to help you.

I know I don't know anything (Socrates)