ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Looking for an alternate solution (https://www.excelbanter.com/excel-worksheet-functions/221519-looking-alternate-solution.html)

covingj

Looking for an alternate solution
 
I'm looking to see if there is an alternate solution. I have end users who
will enter four values. Two calculations will be performed resulting in an
average and the high value. There are three tests that are performed to
detemine if the person meets or fails. I want to use the results and
determine if the person has met all three of the tests, and if so, to refer.
If the person fails any of the three criteria, then there will be no
referral. I have created the following formula, and it does work, but I'm
wondering if there may be a more effecient way to accomplish this, just in
case I have to expand the number of tests that have to be performed so maybe
I could use a range instead of checking each individual cell.

In the formula below, E2, E3, and E4 will equal either Meet or Fail

=IF(OR(E2="Fail",E3="Fail",E4="Fail"),"Do not refer","Refer")

No rush on this since I have a working solution, but I thank you all for
your hard work. You have assisted me on several projects that could not have
been completed without you.

Luke M

Looking for an alternate solution
 
Perhaps:
=IF(ISNUMBER(MATCH("Fail",E2:E4,0)),"Do not refer","Refer")

Checks to see if the word "Fail" appears in the array (which returns a
number). You can now simply expand your array as needed. You could even go
ahead and set it to E2:E100 right now, and as long as you don't have "Fail"
in any of the cells, it will still work.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"covingj" wrote:

I'm looking to see if there is an alternate solution. I have end users who
will enter four values. Two calculations will be performed resulting in an
average and the high value. There are three tests that are performed to
detemine if the person meets or fails. I want to use the results and
determine if the person has met all three of the tests, and if so, to refer.
If the person fails any of the three criteria, then there will be no
referral. I have created the following formula, and it does work, but I'm
wondering if there may be a more effecient way to accomplish this, just in
case I have to expand the number of tests that have to be performed so maybe
I could use a range instead of checking each individual cell.

In the formula below, E2, E3, and E4 will equal either Meet or Fail

=IF(OR(E2="Fail",E3="Fail",E4="Fail"),"Do not refer","Refer")

No rush on this since I have a working solution, but I thank you all for
your hard work. You have assisted me on several projects that could not have
been completed without you.


Ron Rosenfeld

Looking for an alternate solution
 
On Wed, 18 Feb 2009 12:07:02 -0800, covingj
wrote:

I'm looking to see if there is an alternate solution. I have end users who
will enter four values. Two calculations will be performed resulting in an
average and the high value. There are three tests that are performed to
detemine if the person meets or fails. I want to use the results and
determine if the person has met all three of the tests, and if so, to refer.
If the person fails any of the three criteria, then there will be no
referral. I have created the following formula, and it does work, but I'm
wondering if there may be a more effecient way to accomplish this, just in
case I have to expand the number of tests that have to be performed so maybe
I could use a range instead of checking each individual cell.

In the formula below, E2, E3, and E4 will equal either Meet or Fail

=IF(OR(E2="Fail",E3="Fail",E4="Fail"),"Do not refer","Refer")

No rush on this since I have a working solution, but I thank you all for
your hard work. You have assisted me on several projects that could not have
been completed without you.


=if(countif(e2:e4,"Fail"),"Do not Refer","Refer")
--ron

covingj

Looking for an alternate solution
 
Thank you for your lightning fast response. MATCH did cross my mind, but
didn't put it together with ISNUMBER. Maybe when I grow up I will be as smart
as some of you, but being in my 40's, I'm running out of time.

"covingj" wrote:

I'm looking to see if there is an alternate solution. I have end users who
will enter four values. Two calculations will be performed resulting in an
average and the high value. There are three tests that are performed to
detemine if the person meets or fails. I want to use the results and
determine if the person has met all three of the tests, and if so, to refer.
If the person fails any of the three criteria, then there will be no
referral. I have created the following formula, and it does work, but I'm
wondering if there may be a more effecient way to accomplish this, just in
case I have to expand the number of tests that have to be performed so maybe
I could use a range instead of checking each individual cell.

In the formula below, E2, E3, and E4 will equal either Meet or Fail

=IF(OR(E2="Fail",E3="Fail",E4="Fail"),"Do not refer","Refer")

No rush on this since I have a working solution, but I thank you all for
your hard work. You have assisted me on several projects that could not have
been completed without you.



All times are GMT +1. The time now is 09:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com