excel - Multiple If Else in Excel
问题描述
I want to write a formula in excel. I want to implement below in excel
if(C10 != "SA")
{
if(H10 == L1 OR H10 == L2)
{
if(I10 != "A")
{
ERROR
}
else
{
if(J10 == "2")
{
Concate
}
else
{
ERROR
}
}
}
else
{
ERROR
}
}
else
{
ERROR
}
And I write below formula in excel
=if(NOT c10 = "SA",if(h10 = "L1" OR h10 = "L2",if(NOT i10 = "A","ERROR!",if(j10 = "2","ERROR!",CONCAT(c10:k10))),"ERROR!"),"ERROR!")
But it gives me error when I enter a formula
Please help me to solve the issue. Advance thanks
解决方案
OR 语法是... OR(<condition1>, <condition2>)
而不是...NOT(<condition1>)...
。尝试,
=if(NOT(c10="SA"), if(OR(h10="L1", h10="L2"), if(NOT(i10 = "A"), "ERROR!", if(j10 = "2", "ERROR!", CONCAT(c10:k10))), "ERROR!"), "ERROR!")
推荐阅读
- django - 在 Django 中创建和注释简单的地理地图
- android - 在暂停的应用启动时附加 frida(等待调试)
- swift - 服务器端 Swift URLSession.shared.dataTask 和 JSONSerialization.jsonObject 苦苦挣扎。如何创建一个有效的字典?
- c - 学生管理系统使用链表删除部分出错
- linux - 无法在 CMakeList.txt 中为 Kdevelop 设置 GCC 8.1
- javascript - 使用缩小的外部 OpenLayers 和 webpack 时的错误
- ios - 试图在同一个 UIView 元素上调用 UIView 的两个扩展
- sql - Postgresql - 如何根据唯一行的总数创建条件
- java - 如何通过 FirefoxProfile 启动 Mozilla 浏览会话?
- php - 如何配置本地 MySQL 连接(Sequel Pro & Laravel)?