Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement libre office中的If-else If语句_If Statement_Libreoffice - Fatal编程技术网

If statement libre office中的If-else If语句

If statement libre office中的If-else If语句,if-statement,libreoffice,If Statement,Libreoffice,我正在使用libre office,我正在尝试应用If-else-If语句,但我无法做到这一点 我有多个条件的数字。在“E”列中,我有数字。我想为不同的号码分别留言 For number- 0.00 = "standard 5,60 Euro charge" For number- 5,60 = "standard 5,60 Euro charge" For number- 8,00 = "standard 5,60 Euro charge" For number- 10,95 = "St

我正在使用libre office,我正在尝试应用If-else-If语句,但我无法做到这一点

我有多个条件的数字。在“E”列中,我有数字。我想为不同的号码分别留言

For number-  0.00 = "standard 5,60 Euro charge"
For number-  5,60 = "standard 5,60 Euro charge"
For number-  8,00 = "standard 5,60 Euro charge"
For number- 10,95 = "Standard 14,95 Euro charge" 
For number- 24,95 = "express 29,95 Euro charge"
for number- 30,00 = "Super 45,00 Euro charge"
=IF(E3<="8";"standardpaket 5,6 euro netto" ;elseif(E3="10.95";"DHL Sperrgut 14,95 Euro netto";elseif(E3="24.95";"DHL Express 29,95 Euro netto";else;"Free")))
编号为-0.00的
=“标准5,60欧元费用”
对于数字-5,60=“标准5,60欧元费用”
对于数字-8,00=“标准5,60欧元费用”
对于数字-10,95=“标准14,95欧元费用”
对于数字-24,95=“快递29,95欧元费用”
对于数字-30,00=“超级45,00欧元费用”

=如果(E3我想这已经有很长时间了,但是因为没有结论性的答案,我将发布一个答案

如果需要在两个范围之间进行选择,那么VLOOKUP()解决方案是很好的。 对于固定值,请使用自定义函数

函数选择(byVall作为字符串)作为字符串
选择Case byVall
案例0:SEL=“标准5,60欧元费用”
案例5.6:SEL=“标准5,60欧元费用”
案例8:SEL=“标准5,60欧元费用”
案例10.95:SEL=“标准14,95欧元费用”
案例24.95:SEL=“快递29,95欧元费用”
案例30:SEL=“超级45,00欧元费用”
Case Else:SEL=“免费”
结束选择

结束函数

由于这是您的第一篇帖子,请检查邮件的格式。您检查了吗?没有“elseif”。只需将其替换为新的
IF()
子句。如果有两个以上的IF子句,这将非常麻烦,所以您可以选择不同的解决方案,如查找表和…fred,如果您知道答案,请写在这里