# Maths Formula!

#### TonyHolmes

##### Board Regular
Help! I need a formula to format any whole number or decimal to 1, 2 or 3 significant figures. Can anybody help????
Frustrated Maths Teacher

### Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

#### al_b_cnu

##### Well-known Member
Hi,

do you mean Format|Cells, select 'Number & set the 'Decimal Places' as required?

HTH

Alan

#### AlohaJulio

##### Board Regular
Have you tried the round functions? Check out this tip:
http://www.j-walk.com/ss/excel/usertips/tip032.htm

Rounding to n significant digits
Excel includes three functions (ROUND, ROUNDUP, and ROUNDDOWN) that round values to a specified number of digits. In some cases, however, you may need to round a value to a specified number of significant digits.

For example, you might want to express the value 1,432,187 in terms of two significant digits (that is, as 1,400,000). Here's an elegant solution. The formula below rounds the value in cell A1 to the number of significant digits specified in cell A2:

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

#### DRJ

##### MrExcel MVP
Format | Cells | Scientific will get you close. If you set to two decimal places it will give you a three sig fig number. If you have more than three significant figures it will reduce it to three, the problem is if you have 1 or 2 significant figures it will still give you three. i.e. 100 has one sig fig, but willl display as 1.00 E+02 which is three sig figs.

#### TonyHolmes

##### Board Regular
Thanks all for your helpful suggestions, I think you may have solved it now!

Replies
1
Views
139
Replies
1
Views
58
Replies
6
Views
109
Replies
3
Views
170
Replies
3
Views
155

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

1,151,491
Messages
5,764,676
Members
425,229
Latest member
Rashid mahmood

### 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.

### Which adblocker are you using?

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

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