significant figures

lisamh81a

New Member
Joined
Dec 18, 2002
Messages
3
So I should be doing real work, but I have become obsessed with this problem...
On previous message boards, people were saying that you can round to a particular number of significant figures using this: (quote from Jay Petrulis)
With your raw data in A1 and the number of significant figures you desire in B1, try:

=ROUND(A1,B1-1-INT(LOG10(ABS(A1))))

However, this doesn't actually show the last significant digits if they are zeros past the decimal point. I know you could do this by formatting the cells if they all round to the same decimal places, but what if you have numbers like 1299, 12.99, and 0.1299? If you round to 3 sig figs, you get 1300, 13, and 0.13, where I would like to instead show 1300, 13.0 and 0.130.
Also, I don't want the values to actually change (be rounded) if they are to be used in subsequent calculations, I just want them to show up with the correct sig figs.
Thanks,
Lisa
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi Lisa

You could use a Custom Format of: [<1]0.000;0.0;0.0

But it will noy accomodate the rounding of whole numbers, eg 1299 to 1300
 
Upvote 0

Forum statistics

Threads
1,224,519
Messages
6,179,263
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top