How to get excel to display a certain number of significant figures?

前端 未结 10 1375
太阳男子
太阳男子 2021-01-05 04:10

I am using excel and i want to display a value to a certain number of significant figures.

I tried using the following equation

=ROUND(value,sigfigs-         


        
10条回答
  •  清歌不尽
    2021-01-05 04:38

    Rounding to significant digits is one thing... addressed above. Formatting to a specific number of digits is another... and I'll post it here for those of you trying to do what I was and ended up here (as I will likely do again in the future)...

    Example to display four digits:

    .

    Use Home > Styles > Conditional Formatting

    New Rule > Format only cells that contain

    Cell Value > between > -10 > 10 > Format Number 3 decimal places

    New Rule > Format only cells that contain

    Cell Value > between > -100 > 100 > Format Number 2 decimal places

    New Rule > Format only cells that contain

    Cell Value > between > -1000 > 1000 > Format Number 1 decimal place

    New Rule > Format only cells that contain

    Cell Value > not between > -1000 > 1000 > Format Number 0 decimal places

    .

    Be sure these are in this order and check all of the "Stop If True" boxes.

提交回复
热议问题