ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Which function to check any value existed withing a list? (https://www.excelbanter.com/excel-worksheet-functions/62522-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

Gary''s Student

Which function to check any value existed withing a list?
 
Hi Eric:

COUNTIF() will work for you.

Let's say we have a set of values in column A, say A1 thru A100. In B1 we
insert the value we would like to check. In B2 enter:

=(COUNTIF(A1:A100,B1)0) which will return TRUE if B1 is in the list
--
Gary's Student


"Eric" wrote:

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



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

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