在 Excel 2010 中嵌套 IF 语句
如何在 Excel 2010 中嵌套 IF 语句?我在尝试组织来自 Evolus Pencil 支持票。
这是我想要的结果:我想嵌套 IF 语句以在不同的状态级别之间进行选择,例如“固定”、“新建”、“无效”、“完成”、“重复”等。但是,当我尝试测试时,我必须制作多个表才能实现此目的它, IF 语句只给我第一个选择(固定)。
以下是测试数字是否为 1-6 并添加数字和状态级别的公式:
=IF(U2="1",
CONCATENATE(VALUE(U2),$V$2,IF(U2="2",
CONCATENATE(VALUE(U2),$W$2,IF(U2="3",
CONCATENATE(VALUE(U2),$X$2,IF(U2="4",
CONCATENATE(VALUE(U2),$Y$2,IF(U2="5",
CONCATENATE(VALUE(U2),$Z$2,IF(U2="6",
CONCATENATE(VALUE(U2),$AA$2,"NO")
然而,在相应单元格中的结果是: Cell is U2 1FixedFALSE Cell is U3 false
请查看此处的电子表格
< a href="http://win7guruquestions.posterous.com/my-spreadsheet-illustating-selection-and-if" rel="nofollow">http://win7guruquestions.posterous.com/my-spreadsheet-illustating-selection- and-if
我希望你能帮助我。提前致谢
How do I nest IF statements in Excel 2010? I found my inspiration trying to organize data from Evolus Pencil Support Tickets.
Here is my desired result: I want to nest IF statments to choose between different status levels, such as Fixed, New, Invalid, Done, Duplicate, etc. However, I had to make several tables to achieve this and when I tried to test it, the IF statement only gives me the first choice (Fixed).
Here is the formula to test whether the number is 1-6 and add on the number, and the status level:
=IF(U2="1",
CONCATENATE(VALUE(U2),$V$2,IF(U2="2",
CONCATENATE(VALUE(U2),$W$2,IF(U2="3",
CONCATENATE(VALUE(U2),$X$2,IF(U2="4",
CONCATENATE(VALUE(U2),$Y$2,IF(U2="5",
CONCATENATE(VALUE(U2),$Z$2,IF(U2="6",
CONCATENATE(VALUE(U2),$AA$2,"NO")
The result, however, in the corresponding cells is: Cell is U2 1FixedFALSE Cell is U3 false
Please check out the spreadsheet here
http://win7guruquestions.posterous.com/my-spreadsheet-illustrating-selection-and-if
I hope that you can help me with this. Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发布的公式缺少右括号。假设它应该
有效,前提是 U2 中的值作为字符串输入。
另一种公式:
the formula posted is missing closing brackets. On the assumption it should be
it works, provided values in U2 are entered as strings.
An alternative formula: