G'day everyone,
I am trying to compare two lists of students with the aim of returning a list of matches. The first list is in the array B8:B99 (with some blanks at the bottom) and the second list in found at D8:D99. The matches rarely occur on the same row. I'm trying to list the matches from B108:B199. In this case, Cell B107 tells us that there are 17 matches, but the formula pasted below tells us the matches occur after several #N/As. I'm hoping somebody might be able to tell me how to skip the #N/As in my new list. Here is what I have so far in B108:
This returns #N/A because the match function returns this:
Any help here would be greatly appreciated.
Marty
I am trying to compare two lists of students with the aim of returning a list of matches. The first list is in the array B8:B99 (with some blanks at the bottom) and the second list in found at D8:D99. The matches rarely occur on the same row. I'm trying to list the matches from B108:B199. In this case, Cell B107 tells us that there are 17 matches, but the formula pasted below tells us the matches occur after several #N/As. I'm hoping somebody might be able to tell me how to skip the #N/As in my new list. Here is what I have so far in B108:
HTML:
=IF(ROWS(B$108:B108)>B$107,"",INDEX(B$8:B$100,SMALL(IF(MATCH(B$8:B$100,D$8:D$100,0),ROW(B$8:B$100)-ROW(B$8)+1),ROWS(B$108:B108))))
This returns #N/A because the match function returns this:
HTML:
=IF(ROWS(B$108:B108)>B$107,"",INDEX(B$8:B$100,SMALL(IF({#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;#N/A;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43;43}),ROW(B$8:B$100)-ROW(B$8)+1),ROWS(B$108:B108))))
Any help here would be greatly appreciated.
Marty