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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
That can probably be shortened to:

[TABLE="width: 246"]
<colgroup><col width="246"></colgroup><tbody>[TR]
[TD="width: 246"]=IF(ISNA(MATCH(B1,A:A,0)),B1,"")

[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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