ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Which function to check any value existed withing a list? (https://www.excelbanter.com/excel-discussion-misc-queries/62501-function-check-any-value-existed-withing-list.html)

Eric

Which function to check any value existed withing a list?
 
Does anyone know which function to perform checking any value within a list?
such as
a list {1,2,3,4,5,6,7,8,9}
a value {4}
then return true
Thank you
Eric

Cutter

Which function to check any value existed withing a list?
 

With your values in A1:A10 and your value to search for (4) in B1 try
this:

=COUNTIF(A1:A10,B1)0

This will return TRUE if there is a 4 (or any other value you put in
B1) in the list and FALSE if that value is not in the list.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=497082



All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com