简体   繁体   English

多个条件If&Isblank Excel公式

[英]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 "" 如果A1 = 1且B1 = 2且C1 =“ Yes”,则为D1,但如果A1 = 1且B1 = 2且C1 =“ No”,则为E1,但如果A1 = 1且B1 = 2且C1 = isblank,则为“”

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. 我希望公式查看单元格A1,看看它是否包含数字1,然后查看单元格B1,看看它是否包含数字2,然后查看单元格C1,看看它是否包含文本“ yes”,是否返回单元格D1的内容,但如果单元格C1包含文本“否”,则返回单元格E1的内容,但如果单元格C1为空(无文本或数字),则不执行任何操作。

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 其中“任何”代表其他

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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