The first two sheets of my workbook each contain a single column, column A, of approximately 2000 values. In addition to these two sheets I have 42 other sheets that each contain anywhere from 20-1500 values, also in a single column A.
For each of the ~2000 values in column A of sheets 1 and 2 I am trying to check if those values exist in any of the other 42 sheets. If so, I'd like the name of the sheet they exist in to show up in column B.
So:
IF sheet1.A1.value EXISTS IN sheet3.A:A
RETURN sheet3.name
ELSE IF sheet1.A1.value EXISTS IN sheet4.A:A
RETURN sheet4.name
etc...