ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Omer (https://www.excelbanter.com/excel-discussion-misc-queries/146714-omer.html)

omer

Omer
 
Can any body tell me how to do this

if either column A has "yes" or column B has "yes", column C should show
"yes" too

for example
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No

JE McGimpsey

Omer
 
One way:

C1: =IF(OR(A1="Yes",B1="Yes"),"Yes","No")

copy down as necessary.

In article ,
Omer wrote:

Can any body tell me how to do this

if either column A has "yes" or column B has "yes", column C should show
"yes" too

for example
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No


CmK

Omer
 
try this

=if(a2="yes"or b2="yes,"yes","no")



"Omer" wrote:

Can any body tell me how to do this

if either column A has "yes" or column B has "yes", column C should show
"yes" too

for example
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No


JE McGimpsey

Omer
 
Did *you* try it?

In article ,
CmK wrote:

try this

=if(a2="yes"or b2="yes,"yes","no")


Rick Rothstein \(MVP - VB\)

Omer
 
Can any body tell me how to do this

if either column A has "yes" or column B has "yes", column C should show
"yes" too

for example
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No


Here is my attempt at it...

=IF(AND(A1="no",B1="no"),"no","yes")

Rick

CmK

Omer
 

sorry i didnt it dosent work?

"JE McGimpsey" wrote:

Did *you* try it?

In article ,
CmK wrote:

try this

=if(a2="yes"or b2="yes,"yes","no")



omer

Omer
 
Thanks alot all of you, just one more query

if either column A has "yes" or column B has "yes", column C should show
"yes" too but if BOTH columns "A" or "B" has "N/A" "C" should say "N/A",
With you guys formula "C" is giving me "No"

let make this
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No
N/A N/A N/A

"Rick Rothstein (MVP - VB)" wrote:

Can any body tell me how to do this

if either column A has "yes" or column B has "yes", column C should show
"yes" too

for example
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No














Here is my attempt at it...

=IF(AND(A1="no",B1="no"),"no","yes")

Rick


Rick Rothstein \(MVP - VB\)

Omer
 
if either column A has "yes" or column B has "yes", column C should show
"yes" too but if BOTH columns "A" or "B" has "N/A" "C" should say "N/A",
With you guys formula "C" is giving me "No"

let make this
A B C
Yes no yes
No Yes Yes
Yes Yes Yes
No no No
N/A N/A N/A


Do you mean "N/A" as an enter piece of text??? If either column contains a
genuine N/A error, then column C will get an N/A error too. Instead of
putting "N/A" as text in one or both columns, use =NA() and watch what our
functions do.

Rick


Billy Liddel

Omer
 


"Omer" wrote:

Thanks alot all of you, just one more query

if either column A has "yes" or column B has "yes", column C should show
"yes" too but if BOTH columns "A" or "B" has "N/A" "C" should say "N/A",
With you guys formula "C" is giving me "No"


Omar

The following should work whether or not "N/A" is text or a formular error
#N/A
=IF(OR(ISERROR($A4),ISERROR($B4)),NA(),IF(A2="Yes" ,"Yes",IF(OR(B2="Yes",A2="Yes"),"Yes",IF(AND(A2="N o",B2="No"),"No","No"))))

Be careful of the wrapping, maybe copy it into Notepad and edit it there to
make sure there are no breaks. then copy from Notepad.

Regards
Peter


Billy Liddel

Omer
 
Or to keep the formating the same

=IF(OR(ISERROR($A6),ISERROR($B6)),NA(),IF(OR($A6=" Yes",$B6="Yes"),"Yes",IF(OR(A6="N/A",B6="N/A"),"N/A","No")))

Peter


All times are GMT +1. The time now is 02:36 AM.

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