Significant figures & decimal points

Markdon

New Member
Joined
Jan 16, 2014
Messages
9
Hi, been browsing the forum and thought i'd cracked my problem, alas not quite, and im struggling now to continue with my project.

Basically, im trying to create a spreadsheet where when i enter a lab result, it does what it needs to do, and the end result is a number corrected to two sig figs, which i got from the forum:

=ROUND(EC67,2-(1+INT(LOG10(ABS(EC67)))))

The spreadsheet is already made, i have been using it for years, but i always have to go back in to correct the sig figs, so figured i'd have a go at automating it.So i have copied my results table, and inserted the above formula into each cell, and it works, sort of.I want numbers less than 10, to be displayed like 9.9, 0.0025, and numbers 10 or above to be whole numbers. The decimal points are all over the place, and im getting numbers like 200.00, 0.9, 2.10, 3.20, 0.40

The problem here is every cell has the chance to be any number from 0.000000001 to 500, so i need a formula that is variable in this way? Something i can add in if it is greater than 9.9 to remove the decimal point?

Thanks for any help.Mark.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Does it matter if the cell has the full value and just displays the way you want or does the value actually need changing?
 
Upvote 0
The cells will be mirrored from the original results, so i have full results, then corrected reults in a table under it.

So for the corrected table, i just want the results expressed as in the original post, thanks for looking.

Mark.
 
Upvote 0
The below are examples of cells that have had the formula inserted into them, not sure if the cells need the formatting reset before the formula is added or something?

0.00015


0.00044​

0.00110​

0.00039​

0.00073​

0.03100​

0.00810​

0.00083​

0.00042​

0.00130​

0.00130​

0.00003​

0.00003​

0.00044​

0.04600​

0.00018​

<TBODY>
</TBODY>
 
Upvote 0
Another example of a small section of the table:

I'm thinking i need something relating to decimal points to fix this?
Antimony​
<​
0.56​
0.42​
0.98​
Arsenic​
<​
1.70​
<​
0.15​
<​
1.9​
Chromium​
<​
4.10​
<​
5.80​
<​
9.9​
Cobalt​
<​
1.50​
<​
0.17​
<​
1.7​
Copper​
2.80​
5.50​
8.3​
Lead​
<​
120​
<​
2.60​
<​
120​
Manganese​
<​
31.00​
<​
2.30​
<​
33​
Nickel​
<​
3.20​
<​
3.20​
<​
6.4​
Thallium​
<​
1.60​
<​
0.21​
<​
1.8​
Tin​
<​
5.00​
0.20​
5.2​
Vanadium​
<​
4.90​
<​
0.60​
<​
5.5​
Mercury​
<​
0.10​
<​
0.04​
<​
0.14​
Cadmium​
<​
0.10​
<​
0.14​
<​
0.24​
Cadmium & Thallium Combined​
<​
1.7​
<​
0.35​
<​
2.0​
Total Group III Metals​
170​
21​
200​
Beryllium​
<​
0.70​
<​
0.21​
<​
0.91​
Selenium​
<​
0.40​
<​
0.28​
<​
0.68​
Zinc​
<​
0.40​
<​
0.89​
<​
1.30​
Molybdenum​
<​
0.40​
<​
0.21​
<​
0.61​

<TBODY> </TBODY>
 
Upvote 0
Maybe ...

A​
B​
1​
0.000003414993​
0.0000034
2​
0.000004546042​
0.0000045
3​
0.000017288969​
0.000017
4​
0.000374432682​
0.00037
5​
0.002497138034​
0.0025
6​
0.031210539936​
0.031
7​
0.673720203234​
0.67
8​
1.115940829872​
1.1
9​
11.115181186071​
11.
10​
288.169494750620​
290

The formula in B1 and copied down is

=TEXT(ROUND(A1, 2-1-INT(LOG(ABS(A1)))), 0 & IF(2-INT(LOG(ABS(A1)))>0, "." & REPT(0, 2-1-INT(LOG(ABS(A1)))), ""))
 
Upvote 0
Answered my own question, conditional formatting works, set the range to:

10 to 100, 0 decimal places
1 to 9.9, 1 decimal place
0.1 to 0.99, 2 decimal places
etc etc
also added cell equal to 0.00000000000000(absolute zero value) 1 decimal place

phew. just got to add it to all my sheets.
 
Upvote 0
Sorry shg, hadnt refreshed the page when i wrote my reply!

Thats some long formula you have there! may use that if it works, trust a formula more than conditional formatting i think??
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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