Alternative to Vlookup that does not stop at first

2020-05-08 07:47发布

Figure 1

I am trying to populate B2:D5 with "yes"/"No" ( Figure 1) based on the criteria that if I find the respective pvalue( Column A) , in the 'Test' column in a separate sheet and the Fvalue matches the column header of figure 1. I tried using the formula visible in figure 3. However, it incorrectly labels the cow and chicken columns. Which I suspect is due to it stopping at the first " True" value it finds, and not iterating over the other values once it finds said true value.

Figure 2

Figure 3

1条回答
Explosion°爆炸
2楼-- · 2020-05-08 08:08

Use COUNTIFS()

In B2:

=IF(COUNTIFS(Sheet1!A:A,$A2,Shee1!B:B,B$1),"Yes","No")

Then copy over and down the grid.

Where Sheet1 is the list.

查看更多
登录 后发表回答