So you want to compare the entries in the text file to file names in a directory. You could use a simple chain of commands in Terminal, e.g.
Code:
find PATH | grep -f LIST.txt
or:
Code:
while read file; do find PATH -name $file; done < LIST.txt
Replace PATH with the directory and LIST.txt with your text file. The first one lists all files in the directory and prints those that are on the list, whereas the second will look for matching file names for each line in the file.
This will not work with Excel though and it presupposes that each file name is on a separate line. You can also so pattern matching; there is a lot more you can do with Terminal commands.