我有两张excel表
下面是两张纸的示例
sheet1
a 1
b 2
d 1
e 3
g 1
sheet2
a
b
c
d
e
f
我想在表 2 的 b1 中放入一个公式并将其向下拖动,以便生成的表 2
sheet2
a 1
b 2
c 0
d 1
e 3
f 0
explanation : - a = 1 because same value in book1
b = 2 because same value in book1
c = 0 because c does not exist in book1
d = 1 because same value in book1
e = 3 because same value in book1
f = 0 because f does not exist in book1
我可以在表 2 的 b 列中使用什么公式?