简体   繁体   English

如何设置单元格范围以自动显示数据的准确性?

[英]How do set a range of cells to show the accuracy of the data automatically?

I was looking for a simple solution such as conditional formatting rules, but I can't find a way.我一直在寻找一个简单的解决方案,例如条件格式规则,但我找不到方法。

I need a range of cells say a column of numbers to automatically adjust the accuracy (number of number after the decimal) based solely on the number/data that is copied into the cells.我需要一系列单元格,比如一列数字,以仅根据复制到单元格中的数字/数据自动调整精度(小数点后的数字)。

Labs provide results with accuracy based on varying factors that can change over time depending on the analysis machines used, the amount of sample provided, etc. So one may get the following column of results (typically no more than 4 places of decimal).实验室根据不同因素提供准确度的结果,这些因素可能会随着时间的推移而变化,具体取决于所使用的分析机器、提供的样本量等。因此,人们可能会得到以下结果列(通常不超过小数点后 4 位)。

2.0, 0.11, 6.126, 100.0001 2.0、0.11、6.126、100.0001

You can't just set the column to show 4 places of decimal as this is an error.您不能只将列设置为显示 4 位小数,因为这是一个错误。 (ie 2.0 is not the same as 2.0000. The latter implies you are accurate to the 4th decimal as opposed to the level of accuracy the lab supplied which is only accurate to the 1st decimal. This is referred to as significant digits.) (即 2.0 与 2.0000 不同。后者意味着您精确到小数点后 4 位,而实验室提供的准确度级别仅精确到小数点后 1 位。这被称为有效数字。)

So the issue is how do I copy and past the above data into a workbook and have it automatically show the exact data with the number of decimals as shown/input without rounding or adding significant digits?所以问题是我如何将上述数据复制并传递到工作簿中,并让它自动显示带有显示/输入的小数位数的确切数据,而无需四舍五入或添加有效数字?

Thanks in advance for your help.在此先感谢您的帮助。

This custom formatting should do it这种自定义格式应该可以做到

0.0### 0.0###

to do this去做这个

  1. Select the range of cells you want the formatting applied to Select 要应用格式的单元格范围
  2. Under Formatting drop-down select "Number Formatting"在格式下拉 select “数字格式”
  3. Open the formatting drop-down again and select "More Number Formats"再次打开格式化下拉菜单和 select "More Number Formats"
  4. On the window that pops up, on the left side select "Custom"在弹出的 window 左侧 select "Custom"
  5. Then on the box that says "Type:" type the format string "0.0###"然后在显示“类型:”的框中输入格式字符串“0.0###”
  6. Then click ok, now on the format drop down the word "Custom" should be visible然后点击确定,现在在格式下拉菜单上应该可以看到“自定义”这个词

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

相关问题 Matlab中数值积分的精度 - Accuracy of numerical integration in Matlab 如何将浮点数舍入到Ruby中指定数量的有效数字? - How do I round a float to a specified number of significant digits in Ruby? 在 matplotlib 图的轴上显示小数位和科学记数法 - Show decimal places and scientific notation on the axis of a matplotlib plot 将数字从stringstream转换为具有设定精度的字符串 - Convert a number from stringstream to string with a set precision 如何仅舍入数据框中的数值? - How to round only the numeric values in a dataframe? 如何使用 .3g 保留尾随零点? - How can I keep the trailing zereos with .3g? 您如何舍入数字以纠正不确定性? - How do you round a number to correct uncertainty? 如何在Delphi中将浮点数转换为字符串,指定有效位数,而不是十进制位数(而不是G格式) - How to convert float to string in Delphi specifying Significant Digits, not Decimal Digits (and not G format) 如何在保留签名无花果的同时将Mathematica列表导出为固定宽度的文本文件? - How to export a Mathematica list as a fixed-width text file while preserving sig figs? 如何在Ruby中将整数舍入到<最接近的大数>? - How do I round an integer up to <nearest large number> in Ruby?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM