Formula to find first non-matching number

PaulW49

New Member
Joined
Jul 22, 2013
Messages
2
I have 2 columns of numbers and I want to retrieve the first number in Column B, searching from the top cell in the column, that does not match a number in Column A. I'm ok with basic Index, Match, Lookup but this has me stumped. In case above not clear following is an example where 36 is the number required to be retrieved. Any help greatly appreciated.

…..A B
1 10 29
2 29 10
3 18 36 **
4 12 5
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi and welcome to Mr Excel forum

Try this

=INDEX($B$1:$B$4,MATCH(TRUE,INDEX(ISNA(MATCH($B$1:$B$4,$A$1:$A$4,0)),0),0))

M.
 
Upvote 0
Hi Marcelo - thanks for your rapid response and wonderful solution. I wouldn't have come up with that in a million years but now even I can see the logic behind the formula construction. Thanks also to dermie - you guys have made my intro to Mr Excel a very enjoyable experience.
 
Upvote 0
Hi Marcelo - thanks for your rapid response and wonderful solution. I wouldn't have come up with that in a million years but now even I can see the logic behind the formula construction. Thanks also to dermie - you guys have made my intro to Mr Excel a very enjoyable experience.

Paul,

You are very welcome. Glad for helping :)

M.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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