Check if column contains specific values in excel

百般思念 提交于 2019-12-07 13:46:33

问题


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


回答1:


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




回答2:


It is simple:

=COUNTIFS(B1:B300,"<>1",B1:B300,"<>-24")


来源:https://stackoverflow.com/questions/7468861/check-if-column-contains-specific-values-in-excel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!