A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If numbers are in column B, then you can't use A2. I think your problem statement says following -
- Numbers are in B1:B100.
- Look up B1 in Sheet2, column C and populate Yes or No in C1.
- Same for B2 to B100 and populate C2 to C100.
Now, since your numbers are stored as text in column B, then we need to know the length of the text field. Say, your text format is 00000 (6 digits), hence 123 will appear as 00123 in column B.
Now, 2 scenarios are possible .
- C is also in text format - Your formula would work.
=IF(ISNUMBER(MATCH(B1,'Sheet2'!C:C,0)),"Yes","No")
- C is numeric format. Enter the below formula as Array Formula i.e. not by pressing ENTER after entering your formula but by pressing CTRL+SHIFT+ENTER. This will put { } brackets around the formula which you can see in Formula Bar. If you edit again, you will have to do CTRL+SHIFT+ENTER again. Don't put { } manually.
=IF(ISNUMBER(MATCH(B1,TEXT(Sheet2!C:C,"000000"),0)),"Yes","No")
For above formula "000000" text formatting has been applied. Please change this text formatting as per your requirement.
There are alternative formulas are possible but the formula quotes by you is the best, in my view.