关于excel function 急急急!!

来源:百度知道 编辑:UC知道 时间:2024/06/24 11:15:27
Make an Excel function for calculating the discount of customer’s purchases. If the total sum of purchases is more than €250 the discount is 30%. Otherwise it is 15 %. The function takes one argument: The total sum of purchases and it returns the discounted price.
大意就是用excel求消费者的购买折扣。如果总共购买超过250欧元那么折扣是30%, 如果不是折扣就是15%。
要怎么用excel function算呢 谢谢了 非常急 要快!!!

打算出折扣过后的价格吗?
假设C1购买的金额,D1来显示折扣公式为=if(c1>250,0.3,0.15)
如果直接算出折扣后价格则为:=if(c1>250,c1*0.7,c1*0.85)

在将要显示折扣的单元格里输入“=if(总购买金额的单元格地址>250,30%,15%)”,function就是公式。

应该是=if(c1>250,c1*0.7,c1*0.85)