IF function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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")
 
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?
 
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
 
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
(e-mail address removed)
Replace@mailinator with @tiscali.co.uk

","a")
 
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?
 
You are right.
Alok

Sandy Mann said:
It works for me without being array entered.

--
Sandy
(e-mail address removed)
Replace@mailinator with @tiscali.co.uk

","a")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top