# Doubt in the formula "SE"

1. ## Doubt in the formula "SE"

Hello,

I have a question for a result.
I have a 4 cell column where values from 1 to 5 are displayed.
If the value in this column is equal to or above 3 the student is Approved, if less than 3 the student fails. But if this column (of 4 cells) has at least a 5 and a value equal to or higher than 3 the student is Approved.
How do I make the formula?

Thanks

Luís  Register To Reply

2. ## Re: Doubt in the formula "SE"

Try this:

=IF(AND(COUNTIF(A1:A4,5)>=1,COUNTIF(A1:A4,">="&3)>=1),"Approved","Rejected")  Register To Reply

3. ## Re: Doubt in the formula "SE"

It is not working. Excel gives me error.  Register To Reply

4. ## Re: Doubt in the formula "SE"

What error?

Attach the workbook here.

Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.  Register To Reply

5. ## Re: Doubt in the formula "SE"

Here it is.
The column is in yellow and cell of the result have the question mark.

Thanks  Register To Reply

6. ## Re: Doubt in the formula "SE"

It works fine, but needs tweaking:

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=1);"Approved";"Rejected")

You will need to change COUNTIF, IF and AND to the correct names in Portuguese.  Register To Reply

7. ## Re: Doubt in the formula "SE"

Still not working I don t no what is the problem.  Register To Reply

8. ## Re: Doubt in the formula "SE"

It works in the file I attached.

The error is in the first COUNTIF:

=SE(E(CONT.SE(K5:K14;5 ...  Register To Reply

9. ## Re: Doubt in the formula "SE"

Yes, the problem is solved. That was it. THANK YOU SO MUCH.
But just one more problem.
If the student has a 5 and the others all lower than 3 he fails. And in this formula gives me Approved.
The student is only approved if the minimum has a 5 and a number greater than or equal to 3 (example: 2;2;3;5 = Approved).
Can you help me? Sorry and thanks for your availability.  Register To Reply

10. ## Re: Doubt in the formula "SE"

Try this, then:

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")  Register To Reply

11. ## Re: Doubt in the formula "SE"

YESSSS!!!!You save my life Is WORKING.
But what is the logic, i don´t understand, sorry. I want understand what you did.:D
Thanks a lot.  Register To Reply

12. ## Re: Doubt in the formula "SE"

OK - here goes!

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")

Count to see if there is at least one 5 in the range.

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")

Count to see if there are at least two values equal to or greater than 3 (which includes the 5).

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")

If both of these checks return TRUE, then ...

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")

... show Approved. Otherwise ...

=IF(AND(COUNTIF(K5:K14;5)>=1;COUNTIF(K5:K14;">="&3)>=2);"Approved";"Rejected")

... show Rejected.  Register To Reply

13. ## Re: Doubt in the formula "SE"  Register To Reply

14. ## Re: Doubt in the formula "SE"

Did my explanation help?  Register To Reply

15. ## Re: Doubt in the formula "SE"

yes, your explanation was very clear.
THANKS!!!  Register To Reply

There are currently 1 users browsing this thread. (0 members and 1 guests) 