关键词不能为空

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

平行四边形面积计算公式在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中的数字四舍五入显着的相关文章

  • 余华爱情经典语录,余华爱情句子

    余华的经典语录——余华《第七天》40、我不怕死,一点都不怕,只怕再也不能看见你——余华《第七天》4可是我再也没遇到一个像福贵这样令我难忘的人了,对自己的经历如此清楚,

    语文
  • 心情低落的图片压抑,心情低落的图片发朋友圈

    心情压抑的图片(心太累没人理解的说说带图片)1、有时候很想找个人倾诉一下,却又不知从何说起,最终是什么也不说,只想快点睡过去,告诉自己,明天就好了。有时候,突然会觉得

    语文
  • 经典古训100句图片大全,古训名言警句

    古代经典励志名言100句译:好的药物味苦但对治病有利;忠言劝诫的话听起来不顺耳却对人的行为有利。3良言一句三冬暖,恶语伤人六月寒。喷泉的高度不会超过它的源头;一个人的事

    语文
  • 关于青春奋斗的名人名言鲁迅,关于青年奋斗的名言鲁迅

    鲁迅名言名句大全励志1、世上本没有路,走的人多了自然便成了路。下面是我整理的鲁迅先生的名言名句大全,希望对你有所帮助!当生存时,还是将遭践踏,将遭删刈,直至于死亡而

    语文
  • 三国群英单机版手游礼包码,三国群英手机单机版攻略

    三国群英传7五神兽洞有什么用那是多一个武将技能。青龙飞升召唤出东方的守护兽,神兽之一的青龙。玄武怒流召唤出北方的守护兽,神兽之一的玄武。白虎傲啸召唤出西方的守护兽,

    语文
  • 不收费的情感挽回专家电话,情感挽回免费咨询

    免费的情感挽回机构(揭秘情感挽回机构骗局)1、牛牛(化名)向上海市公安局金山分局报案,称自己为了挽回与女友的感情,被一家名为“实花教育咨询”的情感咨询机构诈骗4万余元。

    语文