TRYING TO COMBINE FORMULAS INTO AN "OR" FORMULA

W

William

I’m trying to create a formula that combines and evaluates two sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that work
correctly for each condition:

1. If B1 is “ET†or “ITâ€, “YES†is returned in A1 (otherwise “NOâ€)
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then “-†(that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger formula.
The combination needs to be some kind of OR formula since one or the other of
the two needs to calculate. Thanks for your assistance.
 
L

Lorne

William said:
I'm trying to create a formula that combines and evaluates two
sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that
work
correctly for each condition:

1. If B1 is "ET" or "IT", "YES" is returned in A1 (otherwise "NO")
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then "-" (that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger
formula.
The combination needs to be some kind of OR formula since one or the other
of
the two needs to calculate. Thanks for your assistance.

=IF(ISBLANK(B1),"-",IF(OR(B1="ET",B1="IT"), "YES","NO"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top