简体   繁体   中英

Multiple criteria If & Isblank Excel Formula

I have been working on this for a day or so now but it is beyond my poor excel knowledge and I can't get it right?

I am trying to write a formula that does this:

If A1=1 and B1=2 and C1="Yes" then D1 but If A1=1 and B1=2 and C1="No" then E1 but if If A1=1 and B1=2 and C1=isblank then ""

I want the formula to look at Cell A1 and see if it contains the number 1 then look at Cell B1 and see if it contains the number 2 then look at Cell C1 and see if it contains the text "yes" and if it does return the contents of Cell D1 but if Cell C1 contains the text "no" then return the contents of Cell E1 but if Cell C1 isblank (has no text or numbers) then do nothing.

Any help or suggestions would be gratefully received.

Thank you in advance.

How about:

=IF(AND(A1=1,B1=2,C1="Yes"),D1,IF(AND(A1=1,B1=2,C1="No"),E1,IF(AND(A1=1,B1=2,C1=""),"","whatever")))

where "whatever" represents the Else

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM