简体   繁体   English

Excel:如何根据一个单元格中的值在一个单元格中使用一个或另一个单独的公式?

[英]Excel: How do I use one or another separate formulas in one cell, based on values in another?

How do I use one or another separate formulas in one cell, based on values in another? 如何根据另一个单元格中的值在一个单元格中使用一个或另一个单独的公式? Link to image below will show the issue. 链接到下面的图像将显示问题。 Thanks Update to new Formula: =IF(OR(E292="",F292=""),"",IF(F292<=E292,"On Time",IF(J292<>"","3rd Party","Late"))) 感谢更新到新公式:= IF(OR(E292 =“”,F292 =“”),“”,IF(F292 <= E292,“准时”,IF(J292 <>“”,“第三方”, “晚的”)))

new screenshot 新截图

Screen shot if isse 如果isse的屏幕截图

With a slight change to your logic we can shorten the formula and add another nested if to test on the blanks. 稍微改变一下逻辑即可缩短公式,并添加另一个嵌套的if来测试空白。

=IF(OR(E3="",F3=""),"",IF(F3<=E3,"On Time",IF(K3<>"","3rd Party","Late")))

在此处输入图片说明

暂无
暂无

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

相关问题 如何使用Excel公式引用从一个工作表到另一个工作表的单元格范围? - How do I reference a cell range from one worksheet to another using excel formulas? 如何在另一个函数中使用一个函数的结果来获取存储在Excel中另一个工作表的单元格中的值? - How do I use the result of one function in another function to get the value stored in a cell in another sheet in Excel? 如何使用 Excel VBA 在单次运行中用一列中的 5 个文字和另一列中的 5 个公式填充 5 x 2 范围 - How do I fill a 5 x 2 range with 5 literals in one column and 5 formulas in another in a single run with Excel VBA 如何根据另一张纸上的非静态单元格值在一张纸上创建一个下拉框? - How do I make a drop down box on one sheet, based on non static cell values on another sheet? Excel / VBA-根据位置将多行合并为一-如何检查单元格值,然后将值保存在另一个单元格中? - Excel / VBA - Multiple Rows to One Based on Positioning - How do i check cell value then save the value in another cell? 在Excel中,通过VBA或公式/函数的组合,根据另一列中的值从一列中删除重复项 - In Excel, remove duplicates from one column based on the values in another column, either through VBA or a combination of formulas/functions Excel - 如何在不使用数组公式和辅助列的情况下将唯一值从一列提取到另一列? - Excel - How can I extract unique values from one column to an another column without using array formulas and helper columns? 如何在没有VBA的情况下将一个单元格的更改添加到Excel中的另一个单元格? - How do I add the change of one cell to another cell in Excel, without VBA? 当根据另一个单元格的内容单击一个单元格时,如何创建弹出窗口? - How do I create a pop-up when one cell is clicked based on the contents of another cell? 如何根据列中的条件将行从一张纸复制到另一张纸-仅粘贴值和格式(不粘贴公式)? - How to copy rows from one sheet to another based on criteria in column— paste only values and formatting (not formulas)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM