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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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