Compare Columns to find Missing Values and Added Values

inosent

Board Regular
Joined
Mar 19, 2007
Messages
131
I have this formula. This will look to see if a value in Col B is found in Col A, and, if so, report the value in Col A:

=INDEX(A:A,MATCH(B2,A:A,0),)

Here is a data sample

1 -- 18

5 -- 9



7 -- 12

18 -- 24

3 -- 2
24 -- 5




12 -- 3

And here is the result:

18


#N/A



12

24

#N/A
5




3

Note, the values are unsorted, and there are, at times, empty rows in between values.

As you can see, the formula finds the values in Col B that are found in Col A, but the values that are not found in Col A return a "#N/A" result.

What I want to do is turn that around, and have a formula that finds the missing values and shows them.

Thus, I want a result that looks like this:

[empty cell]

9



[empty cell]

[empty cell]

2
[empty cell]





[empty cell]



So, the result I am looking for, after comparing the values in the 2 columns, will return only those values in Col B that are not found in Col A, with no "#N/A" thing showing.
 

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.
That can probably be shortened to:

=IF(ISNA(MATCH(B1,A:A,0)),B1,"")


<colgroup><col width="246"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,117
Members
449,993
Latest member
Sphere2215

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