ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need Help with a Formula (https://www.excelbanter.com/excel-worksheet-functions/226366-need-help-formula.html)

[email protected]

Need Help with a Formula
 
Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!

Bernard Liengme

Need Help with a Formula
 
=IF(COUNTIF(E2:I2,"y")=5,"YES","NO")
best wishes

--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

wrote in message
...
Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!



Domenic[_2_]

Need Help with a Formula
 
Try...

=IF(A2&B2&C2&D2&E2="YYYYY","Yes","No")

Hope this helps!

http://www.xl-central.com

In article
,
wrote:

Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!


Ron Rosenfeld

Need Help with a Formula
 
On Wed, 1 Apr 2009 10:32:35 -0700 (PDT), wrote:

Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!


And another method:

This formula must be **array-entered**:

=IF(AND(E1:I1="Y"),"YES","NO")

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl<shift while hitting <enter. If you did this
correctly, Excel will place braces {...} around the formula.
--ron

Rick Rothstein

Need Help with a Formula
 
That will return "Yes" for combinations such as this one (and there are
*lots* more)...

A2="YY"
B2="Y"
C2=""
D2="YY
E2=""

--
Rick (MVP - Excel)


"Domenic" wrote in message
...
Try...

=IF(A2&B2&C2&D2&E2="YYYYY","Yes","No")

Hope this helps!

http://www.xl-central.com

In article
,
wrote:

Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!



Domenic[_2_]

Need Help with a Formula
 
It doesn't look like that's going to be the case. Nevertheless, it
should have been pointed out. Thanks Rick!

In article ,
"Rick Rothstein" wrote:

That will return "Yes" for combinations such as this one (and there are
*lots* more)...

A2="YY"
B2="Y"
C2=""
D2="YY
E2=""

--
Rick (MVP - Excel)


"Domenic" wrote in message
...
Try...

=IF(A2&B2&C2&D2&E2="YYYYY","Yes","No")

Hope this helps!

http://www.xl-central.com

In article
,
wrote:

Hello,

Trying to come up with a formula which would do - if A through E =Y
then H = YES else NO

i started with this but it does not work. =IF((E2:I2 = y), "YES","NO")


A B C D E H
Y Y Y Y Y
Y Y Y N Y

Thanks for the help!



All times are GMT +1. The time now is 10:00 AM.

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