如何调试复杂的IF Excel公式? [英] How can I debug my complex IF Excel formula?

查看:233
本文介绍了如何调试复杂的IF Excel公式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学校老师,正在开发学校的评估系统。我该怎么做才能纠正这个公式?

I am a school teacher and am developing my school's assessment system. What should I do to correct this formula?

= IF(H3 =SUR,IF(Subject!C3< 2.7,Not on跟踪,IF(主题!C3< = 3.29,在轨道上,IF(主题!C3> = 3.3,在上方,IF(H3 =MAS,IF(主题!C3 <2.2,不在轨道上) ,IF(对象!C3 <= 2.79,在轨道上,IF(对象!C3> = 2.8,高于,IF(H3 =EXP,IF(对象!C3 <1.7,不在轨道上) ,IF(主题!C3 <= 2.29,正常,IF(主题!C3> = 2.3,以上,IF(H3 =EM3,IF(主题!C3 <1.2,不在轨道上, IF(对象!C3 <= 1.79,在轨道上,IF(对象!C3> = 1.8,高于,IF(H3 =EM2,IF(对象!C3 <0.7,不在轨道上,IF (主题!C3 <= 1.29,正轨,IF(主题!C3> = 1.3,以上,IF(H3 =EM1,IF(主题!C3 <0.23,不在轨道上,IF(主题!C3 <= 0.42,正常,IF(主题!C3> = 0.43,以上))))))))))))))))))))))))

结果取决于在H_中输入的内容,每个类别都有特定的范围。

The result is dependent upon what is entered within H_, and each category has specific ranges.

推荐答案

正如评论中所说,创建一个表:

As was said in the comments, create a table:

然后您将使用以下数组公式:

Then you would use the following Array formula:

=INDEX(O:O,MATCH(C3,IF($M$1:$M$18=H3,$N$1:$N$18)))

作为一个数组公式,需要在退出编辑模式时使用Ctrl-Shift-Enter而不是Enter来确认。如果正确完成,Excel将在公式周围放置 {}

Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly Excel will put {} around the formula.

每个组需要在一起并按升序排列使用此方法。

Each group needs to be together and in ascending order for this method to work.

它允许更改标准和输出而不更改硬编码公式。

It does allow the change of criteria and output without changing the hard coded formula.

这篇关于如何调试复杂的IF Excel公式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆