关键词不能为空

当前您在: 主页 > 高中公式大全 >

平行四边形面积计算公式在Excel中的数字四舍五入显着

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2020-10-26 16:33
tags:excel四舍五入公式

高一语文文言文-唯美古风四字词语

2020年10月26日发(作者:毛迪)
在Excel中的数字四舍五入显着
你如何告诉Excel 四舍五入到特定数量的显著数据 ,而无需使用指数记数法? 这个Excel
公式会做的伎俩:
= ROUND(的
值,sigfigs
- (1 + INT(LOG10(ABS(

)))))

::你想圆的数量。
sigfigs ::重大的数字要舍。
有。 快速和容易。 继续阅读下面的这个公式是如何工作的更多的解释,并参 观了很多其他
伟大的资源我的Excel技巧Excel模板页面,或最流行 的模板,在右边列表中。
这个公式的技巧来理解科学记数法。 报告数12783有三个显着的数字,会给1.28E4或1.28
* 10 ^ 4或
基地
* 10 ^
指数

让我们携手向后从我们想要的东西。 我们希望对于初学者来说使用ROUND函数。 但是,
我们需要知道的“位置”的数字四舍五入到。 请记住,ROUND函数在Excel中,100 到199
位四舍五入12783意味着你使用-2或12800 = ROUND(12783,-2)的 “位置”。 如果我
们想3显著位数,我们只需要创建一个公式, 让-2基于位置的第一个重要的数字,或1加
指数

12783的
指数
的计算公式是:

4 = INT(LOG10(ABS(12783)))
在那里,我们知道了:3 - (1 + 4)= -2
您还可以使用ROUNDDOWN ROUNDUP函数ROUND函数的。
舍入重要人物的自定义功能
语法:ROUNDSIG(
值,
sigfigs


例如:ROUNDSIG(-0.04589,2)等于-0.046
的功能 ROUNDSIG(NUM 为Variant,兴趣小组为Variant)
昏暗的指数作为双
如果 ISNUMERIC(NUM) 和ISNUMERIC(兴趣小组)
如果的sigs <1, 那么
“返回”#NUM“错误
ROUNDSIG = CVErr(xlErrNum)
其他
如果num <> 0, 则
指数= INT(日志(ABS(NUM)) LOG(10#))
其他
指数为0
结束如果
ROUNDSIG = (NUM _
SIGS - (1 +指数))
结束如果
其他
“返回”#N A“错误
ROUNDSIG = CVErr(xlErrNA)
结束如果
结束功能
另请参见:“ 如何创建自定义的Excel函数 “
注:它已经被正确地指出( 在这里 ),尾随零小数的数字,不一定正确显示使用上述公式。 虽
然该值将是正确的,Excel会自动信号无花果如23.300 23.3(除非已经被设置为“0.000”)
的显示格式显示格式。
附近工作的显示格式问题
为了确保重大尾随零正确显示时,四舍五入了一些显著数字到一定的数量,你需要的文本格
式。 下面的公式是很混乱的,但它可以完成这项工作。
我的想法得到了使用的文本格式,这种方式从约翰McGimpsey的网站 。 然而,上述
megaformula,您可以选择任意数量的显著数字。 下面是一个使用这种方法的VBA函数圆
显着的数字。 该函数返回一个字符串值,所以当使用其他公式中的值,你可以使用值(


)将字符串转换为一个数值。
作为字符串的功能 ROUNDSF(NUM 为Variant,兴趣小组为Variant)
昏暗的指数为整数
作为整数昏暗的 decplace
作为字符串昏暗的 fmt_left
作为字符串昏暗的 fmt_right
由于双昏暗的 numround
如果 ISNUMERIC(NUM) 和ISNUMERIC(兴趣小组)
如果的sigs <1, 那么
“返回”#NUM“错误
ROUNDSF = CVErr(xlErrNum)
其他
numround = (NUM,“”&_
字符串 (的sigs,“0”)和“E +000”)
如果num = 0
指数为0
其他
“回合需要修复?截断?
“的问题时数= 10,100,1000,等等。
指数= ROUND((的日志(ABS(numround))日志(10)),
1)
结束如果
(兴趣小组decplace = - (1 +指数))
如果 decplace> 0, 则
fmt_right =的字符串 (decplace,“0”)
fmt_left =“0”。
其他
fmt_right =“”
fmt_left =“0”
结束如果
ROUNDSF (numround _
fmt_left fmt_right)
结束如果
其他
“返回”#N A“错误
ROUNDSF = CVErr(xlErrNA)
结束如果
结束功能






















Rounding Significant Figures in Excel
How do you tell Excel to round to a specific number of significant figures without having
to use exponential notation? This Excel formula will do the trick: =ROUND(
value
,
sigfigs
-(1+INT(LOG1 0(ABS(
value
)))))
value :: the number you wish to round.
sigfigs :: the number of significant figures you want to round to.
There. Quick and easy. Continue reading below for more explanation about how this
formula works, and visit myExcel Tips and Excel Templates pages for a lot of other
great resources, or check out the list of the most popular templates on the right.
The trick to this formula comes from understanding scientific notation. Reporting the
number 12783 with three significant digits would
give 1.28E4 or 1.28*10^4 or base*10^exponent.
Let's work backwards from what we want. We want to use the ROUND function for
starters. But, we need to know the
way the ROUND function works in Excel, rounding 12783 to the 100s place means you
use a
need to create a formula that gives -2 based upon the position of the first significant digit,
or 1 plus the exponent.
The formula for the exponent of 12783 is:

4=INT(LOG10(ABS(12783)))
There we have it: 3 - (1+4) = -2
You can also use the ROUNDDOWN or ROUNDUP function in place of the ROUND
function.
Custom Function for Rounding Significant Figures
Syntax: ROUNDSIG(value,sigfigs)
Example: ROUNDSIG(-0.04589,2) equals -0.046
Function ROUNDSIG(num As Variant, sigs As Variant)
Dim exponent As Double
If IsNumeric(num) And IsNumeric(sigs) Then
If sigs < 1 Then
' Return the
ROUNDSIG = CVErr(xlErrNum)
Else
If num <> 0 Then
exponent = Int(Log(Abs(num)) Log(10#))
Else
exponent = 0
End If
ROUNDSIG = (num, _
Sigs - (1 + exponent))
End If
Else
' Return the
ROUNDSIG = CVErr(xlErrNA)
End If
End Function
See Also: How to Create Custom Excel Functions
Note: It has been correctly pointed out (here) that trailing zeros on decimals numbers
don't necessarily display correctly when using the above formulas. Although the value will
be correct, Excel automatically formats a number with 5 sig figs such as 23.300 to display
as 23.3 (unless the display format has been set to
Working Around the Display Format Problem
To ensure that significant trailing zeros are displayed correctly when rounding a number to
a certain number of significant digits, you need to work with text formats. The following
formula is very confusing, but it gets the job done.
I got the idea to use the text format in this way from John McGimpsey's site. However, the
above megaformula lets you choose any number of significant digits. Below is a VBA
function using this method to round significant digits. The function returns the value as a
string, so when using the value in other formulas, you can use VALUE(cell) to convert the
string to a numeric value.
Function ROUNDSF(num As Variant, sigs As Variant) As String
Dim exponent As Integer
Dim decplace As Integer
Dim fmt_left As String
Dim fmt_right As String
Dim numround As Double
If IsNumeric(num) And IsNumeric(sigs) Then
If sigs < 1 Then
' Return the
ROUNDSF = CVErr(xlErrNum)
Else
numround = (num,
String(sigs,
If num = 0 Then
exponent = 0
Else
'Round is needed to fix a ?truncation?
'problem when num = 10, 100, 1000, etc.
exponent = Round(Int(Log(Abs(numround)) Log(10)), 1)
End If
decplace = (sigs - (1 + exponent))
If decplace > 0 Then
fmt_right = String(decplace,
fmt_left =
Else
fmt_right =
fmt_left =
End If
ROUNDSF = (numround, _
fmt_left & fmt_right)
End If
Else
' Return the
ROUNDSF = CVErr(xlErrNA)
End If
End Function

全飞秒手术近视-亚太经济合作组织


中国梦为主题800的作文-家长教育孩子的方法


山东高考语文作文-什么是雅思和托福


学霸的-2016四川高考


生物必修三知识点总结-初学者画画教程


半场篮球规则-计算机编程入门


少年易学老难成-山东省招生考试院网


学习时间表-合格性考试成绩查询



本文更新与2020-10-26 16:33,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/428242.html

在Excel中的数字四舍五入显着的相关文章

  • 爱心与尊严的高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊严高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊重的作文题库

    1.作文关爱与尊重议论文 如果说没有爱就没有教育的话,那么离开了尊重同样也谈不上教育。 因为每一位孩子都渴望得到他人的尊重,尤其是教师的尊重。可是在现实生活中,不时会有

    小学作文
  • 爱心责任100字作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任心的作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文