Does specific value exist in a range

C

coloradoprof

Hi everyone,

I'm trying to create a tool that can help me with Sudoku (I'm gettin
bored of charting the possible values of a given cell).

To do this, I must find out whether a given value (for example 3
exists in a specified range. I can't find a function that does thi
for me.

In my perfect world, it would work something like this:
=if((A1:A5,B3:B7) in 5, true, false)

All ideas appreciated. :
 
R

Richard Schollar

You can use Match with the optional thir argument set to False. Wrap it
within an Isnumber and you get a True (exists) or False (it doesn't) return:

=ISNUMBER(MATCH(A1,B1:J1,0))

A1 contains 3 say, B1:J1 the range you are searching

Hope this helps!
 
T

T. Valko

If your number of interest is 3 then what does the 5 represent in your
sample formula:
=if((A1:A5,B3:B7) in 5, true, false)

Does it mean the intersection of A5 and B5?

If so, *maybe* something like this:

=COUNTIF(INDEX(A1:B7,5,),3)>0

Biff
 
Top