Check if column contains specific values in excel

2019-05-16 09:19发布

I need to check in excel whether a column (b1:b300) contains only 2 specific values 1,-24. How can check this using formulas only. Please help

标签: excel formula
2条回答
相关推荐>>
2楼-- · 2019-05-16 10:02

You can use a VLOOKUP, and depending if you search for ANY of the two or BOTH of the two, you combine two VLOOKUP as needed.

=VLOOKUP(arg,range,1,FALSE) will yield #N/A if not found, which can be further analyzed using the =ISNA() function

查看更多
可以哭但决不认输i
3楼-- · 2019-05-16 10:13

It is simple:

=COUNTIFS(B1:B300,"<>1",B1:B300,"<>-24")
查看更多
登录 后发表回答