You don't need macro code at all:
Put this in column "C" and copy it down for all occupied rows:
=IF(ISERROR(VLOOKUP(B1&", "&A1,[Book2]Sheet1!$A:$A,1,FALSE)),"","x")
This part: B1&", "&A1
means take content of B1, merge the string "...