Compare two columns

aysam

Board Regular
Joined
Jun 24, 2009
Messages
225
Office Version
  1. 2010
Platform
  1. Windows
Peace to you all
I have two columns;each has a list of names
I need a formula to return the names that are in column A and not in column B :confused:
Hope I'm clear enough to be helped
Thanks in advance.
 
Thank you for you all
I was going nuts:banghead::banghead:
You saved me :laugh:
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Once more :cool:
Hey jasonb75
Yours is so coooool
But
It returns an error (#NUM!) in the empty Cells
Would yoy Please repair :eeek:
Awaiting
 
Upvote 0
For excel 07 / 10

=IFERROR(INDEX($A$1:$A$7,SMALL(IF(ISERROR(MATCH($A$2:$A$7,$B$2:$B$7,0)),ROW($A$2:$A$7)),ROW(A1))),"")

For older versions, could probably be improved.

=IF(SUM(IF(ISERROR(MATCH($A$2:$A$7,$B$2:$B$7,0)),1))< ROW(A1),"",INDEX($A$1:$A$7,SMALL(IF(ISERROR(MATCH($A$2:$A$7,$B$2:$B$7,0)),ROW($A$2:$A$7)),ROW(A1))))

Confirm array with Shift Ctrl Enter for both versions.
 
Last edited:
Upvote 0
In case you missed the edit, look back at the last reply, it's already there :)
 
Upvote 0
Thaks so much
You all helped me greately:bow::bow::bow:
Cheers:stickouttounge:
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,186
Members
453,151
Latest member
Lizamaison

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