I want to compare sheet 2 column "A" with sheet 1 column "A" (which contains text value ex:name). If do match return 1, if not return 2 on sheet 2 column "B".
我想比较表2列“A”和表1列“A”(其中包含文本值ex:name)。如果匹配返回1,如果不匹配,则在表2“B”列上返回2。
1 个解决方案
#1
Use below function in sheet2: column B
在sheet2:B列中使用以下功能
=IF(Sheet1!A1=A1, 1, 2)
=IF(Sheet1!A2=A2, 1, 2)
.
.
You should get desired output. See screen-shots as asked :
你应该得到所需的输出。按要求查看屏幕截图:
#1
Use below function in sheet2: column B
在sheet2:B列中使用以下功能
=IF(Sheet1!A1=A1, 1, 2)
=IF(Sheet1!A2=A2, 1, 2)
.
.
You should get desired output. See screen-shots as asked :
你应该得到所需的输出。按要求查看屏幕截图: