Simple Match - Need help

sscornav

Board Regular
Joined
Mar 20, 2010
Messages
125
Not sure why I can't get this to work.
I have 2 lists:
1) A list of all racers
2) A list of the racers that finished

I need to compare the 2 lists to produce a list of racers that did not finish. I am trying an array formula, but can't get it to work.

Any suggestions? Thanks!

Excel Workbook
ABC
1All RacersFinishedDid Not Finish
2SueMarySue
3MaryFredSally
4FredMarthaLauren
5SallyJimGrace
6MarthaSteve
7JimHarold
8Steve
9Harold
10Lauren
11Grace
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
This will give the list, but not exactly as you posted it above...There will be blanks..

In C2 and filled down

=IF(COUNTIF(B$2:B$11,A2)=0,A2,"")


Hope that helps.
 
Upvote 0
Not sure why I can't get this to work.
I have 2 lists:
1) A list of all racers
2) A list of the racers that finished

I need to compare the 2 lists to produce a list of racers that did not finish. I am trying an array formula, but can't get it to work.

Any suggestions? Thanks!

Sheet1

<TABLE style="PADDING-RIGHT: 2pt; PADDING-LEFT: 2pt; FONT-SIZE: 10pt; FONT-FAMILY: Arial,Arial; BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0 border=1><COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 131px"><COL style="WIDTH: 103px"><COL style="WIDTH: 100px"></COLGROUP><TBODY><TR style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">1</TD><TD style="FONT-WEIGHT: bold">All Racers</TD><TD style="FONT-WEIGHT: bold">Finished</TD><TD style="FONT-WEIGHT: bold">Did Not Finish</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">2</TD><TD>Sue</TD><TD>Mary</TD><TD>Sue</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">3</TD><TD>Mary</TD><TD>Fred</TD><TD>Sally</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">4</TD><TD>Fred</TD><TD>Martha</TD><TD>Lauren</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">5</TD><TD>Sally</TD><TD>Jim</TD><TD>Grace</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">6</TD><TD>Martha</TD><TD>Steve</TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">7</TD><TD>Jim</TD><TD>Harold</TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">8</TD><TD>Steve</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">9</TD><TD>Harold</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">10</TD><TD>Lauren</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">11</TD><TD>Grace</TD><TD> </TD><TD> </TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
What version of Excel are you using?
 
Upvote 0
Sorry, 2003. Is there a way to get it without blanks?

It's a long list. I suppose I could sort it.
 
Upvote 0
Sorry, 2003. Is there a way to get it without blanks?

It's a long list. I suppose I could sort it.
Try this...

Book1
ABCD
1AllFinishedNot Finished4
2SueMarySue_
3MaryFredSally_
4FredMarthaLauren_
5SallyJimGrace_
6MarthaSteve__
7JimHarold__
8Steve___
9Harold___
10Lauren___
11Grace___
Sheet2

Enter this formula in D1. This will return the count of non-finishers.

=SUMPRODUCT(--(ISNA(MATCH(A2:A11,B2:B7,0))))

Enter this array formula** in C2. This will return the names of the non-finishers.

=IF(ROWS(C$2:C2)>D$1,"",INDEX(A$2:A$11,SMALL(IF(ISNA(MATCH(A$2:A$11,B$2:B$7,0)),ROW(A$2:A$11)),ROWS(C$2:C2))-MIN(ROW(A$2:A$11))+1))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

Copy down until you get blanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
Lawrenceiow

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