either/or in a formula

  • Thread starter Thread starter Connie
  • Start date Start date
C

Connie

I have a very long formula, which is:
=IF(D11=A78,IF(E13=A80,O75,IF(D11=A78,IF(E13=A81,O78,IF
(D11=A76:A77,IF(E13=A80:A81,O81,""))))))

It's only the last part that's not working:
IF(D11=A76:A77,IF(E13=A80:A81,O81,""))))))

I get the FALSE answer instead of a number or nothing at
all. I have a feeling it's because of A76:A77 and A80:A81
in the formula because it's text that's in those cells,
just as it's text in A78. Really, what I want to say is
this:

If D11 equals either A76 or A77, if E13 equals either A80
or A81, then return O81, otherwise put nothing.

How do I put in the either/or bit?

Connie
 
Thank you! That works, but I was still getting the FALSE
response so I dissected the formula, doing it in parts and
found that yours worked, but it's the first two sections
that are giving the FALSE answer.

=IF(D11=A78,IF(E13=A80,O75)) gives FALSE instead of a
number. What I'm trying to say here is this:

If D11=A78 and if E13=A80 then give O75.

What about that one?

Connie
 
=IF(AND(D11=A78,E13=A80),O75,"")




Connie said:
Thank you! That works, but I was still getting the FALSE
response so I dissected the formula, doing it in parts and
found that yours worked, but it's the first two sections
that are giving the FALSE answer.

=IF(D11=A78,IF(E13=A80,O75)) gives FALSE instead of a
number. What I'm trying to say here is this:

If D11=A78 and if E13=A80 then give O75.

What about that one?

Connie
 

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

Back
Top