Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if column contains specific values in excel

Tags:

excel

formula

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

like image 725
Prasadvm Avatar asked Dec 09 '22 06:12

Prasadvm


2 Answers

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

like image 129
MikeD Avatar answered Dec 11 '22 20:12

MikeD


It is simple:

=COUNTIFS(B1:B300,"<>1",B1:B300,"<>-24")
like image 31
Robby Shaw Avatar answered Dec 11 '22 20:12

Robby Shaw