简体   繁体   English

Excel IFS 公式多准则

[英]Excel IFS Formula multiple criteria

Here is my original formula for cell T3:这是我对单元格 T3 的原始公式:

=IF(OR(ISBLANK(S3),S3="None"),DATE(YEAR(B3)+18,MONTH(B3),DAY(B3)),"N/A")

I would like to add the following to the formula above...我想将以下内容添加到上面的公式中......

  • If the word Closed is in cell F3, I want it to put Closed in T3如果 Closed 这个词在单元格 F3 中,我希望它把 Closed 放在 T3 中
  • If the word Active in cell F3, I want it to do the formula above.如果单元格 F3 中的“活动”一词,我希望它执行上面的公式。

I just can't figure out had to add the additional criteria to get the correct results.我只是不知道必须添加额外的标准才能获得正确的结果。

You probably almost have it.你可能几乎拥有它。 I can tell that you have a grasp of the basic concepts.我可以说你已经掌握了基本概念。

The structure of IFS is: IFS的结构是:

=IFS([Something is True1, Value if True1,Something is True2,Value if True2,Something is True3,Value if True3) =IFS([某物为 True1,Value if True1,Something is True2,Value if True2,Something is True3,Value if True3)

So, just substituting in your requirements, you'd need:因此,只需替换您的要求,您就需要:

=IFS(F3="Active",IF(OR(ISBLANK(S3),S3="None"),DATE(YEAR(B3)+18,MONTH(B3),DAY(B3)),"N/A"),F3="Closed","Closed")

The value of "Value if True1" is the embedded conditional that you already arrived at before asking the question. “Value if True1”的值是您在提问之前已经得出的嵌入式条件。

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

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