在这个if语句中有多少参数 [英] How are there too many arguments in this if statement

查看:111
本文介绍了在这个if语句中有多少参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



为什么会这样?任何人都可以在下面的陈述中看到任何错误?

  = IF(G7 =EUR,H7 / 1.15,L7,IF (G7 = USD,H7 / 1.35,L7,IF(G7 = AUD,H7 / 1.35,L7,IF(G7 = CAD,H7 / 1.35,L7,IF(G7 = NOK,H7 /8.8,L7)))))


解决方案



  IF(test,exec if true,exec if false)

所有的IF都有4个参数。



如果我明白你想要做什么,应该尝试:

  = IF(G7 =EUR,H7 / 1.15,IF(G7 =USD,H7 / 1.35,IF(G7 =AUD,H7 / 1.35,IF(G7 =CAD,H7 / 1.35,IF(G7 =NOK,H7 / 8.8,L7))))


My IF statement below keeps error shooting, stating that there are too many arguments.

Why is this? Can anyone see any errors in the statement below?

=IF(G7="EUR",H7/1.15,L7,IF(G7="USD",H7/1.35,L7,IF(G7="AUD",H7/1.35,L7,IF(G7="CAD",H7/1.35,L7,IF(G7="NOK",H7/8.8,L7)))))

解决方案

IF format :

IF(test, exec if true, exec if false)

All your IFs have 4 arguments.

If I understand what you're trying to do, you should try :

=IF(G7="EUR",H7/1.15,IF(G7="USD",H7/1.35,IF(G7="AUD",H7/1.35,IF(G7="CAD",H7/1.35,IF(G7="NOK",H7/8.8,L7)))))

这篇关于在这个if语句中有多少参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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