help - too many decimal places...

RTE

Board Regular
Joined
Jul 24, 2008
Messages
60
Formula result, then copy>paste special/values returned 3.40660841070453

I need to change cell data to 3.40.

Format > decimals (2) does not change data to what I need.

Any ideas on how to reduce the data to only 2 decimal places?

Thanks.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Is it possible to use a formula?

I see that using:

Format>Number>(2) decimal place

rounds the number to 3.41

I know of one way to get 3.40=3.4 from 3.40660841070453

Code:
=ROUNDDOWN(3.40660841070453,2)
I am not sure it is possible through excel options or formats...
Hope that Helps
 
Upvote 0
If you want to have the cell contain, in this example, 3.40 then use the following formula on the data: =TRUNC(A1,2) where A1 is the cell containing 3.40660841070453. On the other hand, if you want to round the number to two decimal places, then use this formula:
=ROUND(A1,2) which will yield 3.41. Hope this can help you.
Larry.
 
Upvote 0
maybe you can select your data an run a macro like this one (remenber to make a copy of your data before you run the macro).

Code:
Sub test()
    With Selection
        .Value = Evaluate("trunc(" & .Address & ",2)")
        .NumberFormat = "#.00"
    End With
End Sub
 
Upvote 0
try the macro i suggest :D o use the TRUNC formula in another column and then copy - paste the result as values.
How about if you have a range of values and you want them truncated?

(57,604.11000)
(1,380.36720)
31,564.93000
23,006.12000
1,380.36720
3,033.06000

to

(57,604.11)
(1,380.37)
31,564.93
23,006.12
1,380.37
3,033.06
0.00

????any suggestions
 
Upvote 0
Look like you could give this a shot to do that:

Format the cells to two decimal places.

right click/format cells

under number tab select number and you will see a decimal place selection. note this does standard rounding as per your example.
 
Upvote 0

Forum statistics

Threads
1,223,627
Messages
6,173,421
Members
452,514
Latest member
cjkelly15

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