Find if value exits in array

  • Thread starter Thread starter Glynn
  • Start date Start date
G

Glynn

I need to determine if a numeric value held in a cell exists is a multy row,
multy column array of numeric values
 
Try

=IF(COUNTIF(A1:D4,E1)>0,"It's there","It's not there")

Where
a1 - D4 is your array
E1 contains the number you are looking for

Mike
 
=COUNTIF(B3:X99,A1)
will return the number of times the value in A1 is in B3:X99.

=countif(b3:x99,a1)>0
will return true or false

change your addresses to match what you need.
 
Thanks Mike
--
Regards

Glynn Taylor


Mike H said:
Try

=IF(COUNTIF(A1:D4,E1)>0,"It's there","It's not there")

Where
a1 - D4 is your array
E1 contains the number you are looking for

Mike
 
Thanks Dave
--
Regards

Glynn Taylor


Dave Peterson said:
=COUNTIF(B3:X99,A1)
will return the number of times the value in A1 is in B3:X99.

=countif(b3:x99,a1)>0
will return true or false

change your addresses to match what you need.
 
Back
Top