I basically have this already. I am looking for one formula.
I have to agree that CountIF is the function to use. A2:A10 as the search range in this example and you'll have to drag the formula to change the value you're checking against so B2 will change to B3, B4, B5, etc and you'll get your line by line answer True/False on whether or not there's a match.
=COUNTIF(A2:A10,B2)>0
If you wanted to do this another way, you could take 2 separate CSV files and use Powershell. In that example, you'd use the compare commandlet. Create the two CSV files with a single column (or multiples) let's say the header for your values is "VALUE"
$file1 = import-csv "C:\file1.csv"
$file2 = import-csv "C:\file2.csv"
Compare $file1 $file2 -property "VALUE" -includeequal -passthru|export-csv "C:\output.csv" -notypeinfo
The indicator in the last column will tell you if the value exists only in <= File 1, => File 2, or == Both.
IF you only want to see the ones that match, you can just filter the output in the pipeline before saving:
Compare $file1 $file2 -property "VALUE" -includeequal -passthru|?{$_.SideIndicator -eq '=='}|export-csv "C:\output.csv" -notypeinfo
I gave up on doing stuff in Excel because powershell is much faster when you're working with thousands of records between multiple CSV files. It takes too damn long to drag forumulas.