IF function

A

AliceNXLand

Please help me, I get a FALSE instead of the True or the "a" I thought I was
supposed to get.

In column C are numbers. In column D is this equation. In column F thru K
are my criteria (cheat sheet). Should I use the numbers that I want the
function to look for? or should I use the addresses (F1:F6, etc.). And do
you see anything wrong with my equation?

=IF(C1="6,11,12,84,86,87,88,89","a")
 
R

Ron Coderre

Your original formula is trying to see if C1 is the string
"6,11,12,84,86,87,88,89"

Try this formula:
=IF(ISNUMBER(MATCH(C1,{6,11,12,84,86,87,88,89},0)),"a")

Does that help?
 
A

Alok

Another way is

=IF(OR(C1={6,11,12,84,86,87,88,89}),"a","b")

the above has to be array entered.(Ctrl-Shift-Enter)

Alok
 
S

Sandy Mann

Alok said:
Another way is

=IF(OR(C1={6,11,12,84,86,87,88,89}),"a","b")

the above has to be array entered.(Ctrl-Shift-Enter)


It works for me without being array entered.

--
Sandy
[email protected]
Replace@mailinator with @tiscali.co.uk

","a")
 
A

AliceNXLand

That is perfect, Ron, Thanks!!!!

Ron Coderre said:
Your original formula is trying to see if C1 is the string
"6,11,12,84,86,87,88,89"

Try this formula:
=IF(ISNUMBER(MATCH(C1,{6,11,12,84,86,87,88,89},0)),"a")

Does that help?
 
Top