# 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

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

Try this:

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

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

It is not working. Excel gives me error.

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.

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

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.

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

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

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 ...

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.

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

Try this, then:

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

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.

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.

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

Did my explanation help?

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

yes, your explanation was very clear.
THANKS!!!

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