简体   繁体   English

如何用英语单词转换这个excel公式?

[英]how to convert this excel formula in english words?

can someone please translate this excel spreadsheet cell formula in english words ? 有人可以用英语单词翻译这个excel电子表格单元格公式吗?

=ROUND(IF(F28 < 1568,2.5,IF(F28 < 2491,0.004873 * F28-5.142,0.02269*F28^0.7329)),2)

am creating a program based from that formula, but i don't understand which one will go first. 我正在根据该公式创建一个程序,但我不知道哪个会优先。 atleast i understand this part IF(F28 is less than 1568) ...then what? 我至少了解这部分IF(F28小于1568)...那又是什么?

Start from the outer if statement and move inwards. 从外部if语句开始,然后向内移动。 The comma in the IF function separates the statements like : IF函数中的逗号分隔如下语句:

boolean expression, true part, and false part 布尔表达式,真部分和假部分

The following is the psuedo code of the above. 以下是上面的伪代码。 All the Round are to two decimal places. 所有回合都保留两位小数。

IF (F28 < 1568) THEN
  ROUND (2.5)
ELSE IF (F28 < 2491) THEN
  ROUND (0.004873 * F28 - 5.142)
ELSE
  ROUND (0.02269 * F28^0.7329)

If the value in cell F28 is less than 1568, then the value in this cell will be 2.5 rounded to 2 decimal places - ie 2.5 如果单元格F28中的值小于1568,则此单元格中的值将2.5舍入到2个小数位-即2.5

If the value in cell F28 is 1568 or more, but less than 2491, then the value in this cell will be: 0.004873 multiplied by [the value in cell F28 minus 5.142], rounded to 2 decimal places 如果单元格F28中的值等于或大于1568,但小于2491,则此单元格中的值将为:0.004873乘以[单元格F28中的值减去5.142],四舍五入到小数点后2位

Otherwise (ie the value in cell F28 is 2491 or more) the value in this cell will be: 0.02269 multiplied by [the value in cell F28 to the power of 0.7329], rounded to 2 decimal places 否则(即,单元格F28中的值为2491或更大),则该单元格中的值将为:0.02269乘以[单元格F28中的值至0.7329的幂],四舍五入到小数点后两位

You will round the following in this order: 您将按以下顺序四舍五入:

  • Smaller than 1568 = 2.5 小于1568 = 2.5
  • Bigger than/Equal 1568 but smaller than 2491 = 0.004873 * F28-5.142 大于/等于1568但小于2491 = 0.004873 * F28-5.142
  • Bigger than/Equal 2491 = 0.02269*F28^0.7329 大于/等于2491 = 0.02269*F28^0.7329

Basically that means this: 基本上这意味着:

IF F28 is smaller than 1568 then use 2.5
IF F28 is larger or equal to 1568 but smaller than 2491 then use 0.0004873 * F28 - 5.142
IF F28 is larger or equal to 2491 then use 0.02269 * F28^0.7329

Round the outcome to 2 digits.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM