Not sure how large your excel file is, but how about a column that indicates whether there is Y, whether there is X and whether there is both X and Y? Then sum up that column...
In the below code, substitute "y" for "david", exchange b1 for the first cell of column Y, substitute "x" for "sports", exchange a1 for the first cell of column X.
Then exchange "can't find X" with 0 and "cant find Y" with 0, and "Has X and Y" with 1.
Auto format from the top to the bottom of your data and sum up that column.
Code to understand what I'm doing:
Code Formatted for you:
Bookmarks