sig figs

mandopolis

New Member
Joined
Apr 15, 2002
Messages
9
can excel round to a certain number of sig figs w/o using the scientific function (i.e 8.47, 203, 42.5) all of those values have 3 sig figs, is there a function that will do this??? thanx for your help!!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

This was posted yesterday to your other thread on this issue. Let us know if this will work for you.

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))))

Bye,
Jay
 
Upvote 0
I didn't realise I referred you to yor own thread.

It was Jay's suggestion I was referring to though, so it's in this thread now.
 
Upvote 0
ok, jay's answer works, except for when theres an answer like 0.0468, i believe excel only recognizes numbers other than 0. i need an answer of .047. any help is always appreciated!! thanxs all
 
Upvote 0
Hi,

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

This will not automatically adjust as above for a number like 0.000468, though.

Bye,
Jay
 
Upvote 0
jay, your first solution worked a little better for me. if i could only use a decimal format with the equation........

its a tough problem, but if you or anyone else can help, its always appreciated!!

marc
 
Upvote 0
Hi,

How did the first one work better? The amended version was exactly the same as the first if the integer part was not zero. This should have improved the situation somewhat.

Are you referring to something like 55.0468 returning 55 rather than 55.0? I don't know any way to work around that unless you format the cell, although you may be able to play with the TEXT function.

The problem with the second one returning 0.047 is that it is really only 2 significant figures, not 3.

Jay
 
Upvote 0
ok, i got it, by using your 1st equation:

With your raw data in A1 and the number of significant figures you desire in B1=3, try:

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

and adding an additional if statement in another cell, that:

With your raw data in A1, the number of significant figures you desire in B2=2 and your previous cell in C3, try:

=IF(C3<.1,ROUND(A1,B2-1-INT(LOG10(ABS(A1)))),C3)

this takes care of the problem, when numbers are less than .1, and therefore solves the problem.

marc

really appreciate your help all these times guys!!

marc
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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