## View Poll Results: IF AND OR Statement, not working need help

Voters
0. This poll is closed
• IF AND or OR function is not giving correct result, need help

0 0%
• IF Logical function

0 0%
Multiple Choice Poll.

# Thread: IF AND OR excel statement

The attachment hasn't changed - you haven't done what I asked in post #2.

I need to know what you are aiming for.

2. The attachment is in my Post #4 and in this post too (In column only P I have manually input the result I want) , the file name has v1 at the end.
I need "complete" if there is only C,Z or "" in cell D5 to O5, otherwise "No"

Thank you

3. Sorry - I somehow missed post#4.

Try this copied down:

=IF(SUM(COUNTIF(\$D5:\$O5,{"C","Z",""}))=12,"Complete","No")

or this:

=IF(SUM(COUNTIF(\$D5:\$O5,{"C","Z",""}))=COLUMNS(\$D5:\$O5),"Complete","No")

4. Any use to you?

5. Its good. I would not have fig it out this formulas..
Have a question, instead of selecting \$D5:\$O5, is it possible to choose cells individually for eg D5, F5, G5, I5 etc.. what would be the formula?
I was trying to tweak your formula but not working from me.
thank you

6. Why would you want to do that? I hope you are not Saying that your real data is not like the sample data you provided?

I'm not going to advise unless you share another workbook that shows the layout of the real data you want to use this with. There may be an easy fix, but I'd have to see.

Please bear in mind in future that we provide solutions based on your sample data: if that is not realistic, then you are not going to get the solution you need. We can't see what's not there!

7. Sorry, for the confusion and more work.

See attached the workbook: Student v2. these are the real data.

your 1st formula is on col AB. My manual input (the result i am expecting) is on col AC.
The additional cols. are "student" col and "S. Name" which were not in my previous workbooks, student col are added after every month col.
In new formula I want to include only cells i.e. month: D5, F5, H5... etc ( jan to dec) (not Student amount).

Thank you

8. I will look in the morning. Bedtime here.

9. You can use this:

=IF(SUM(COUNTIF(\$D5:\$AA5,{"C","Z",""}))-COUNTIFS(\$D\$4:\$AA\$4,"Student",\$D5:\$AA5,"")>=12,"Complete","No")

1. You do not need a + sign at the start of this forumla (I don't know why you added one, but it is not necessary).
2. Do not change the end of the range back to column Z - if you do, it won't work.

10. Once again, it would be nice to know whether or not this worked for you.

Page 2 of 4 First 1 2 3 4 Last