4
For example, I'll have Excel calculate a value based on two other cells, and then have it displayed in another. This is working fine, but how would I limit the number of decimal places it shows?
4
For example, I'll have Excel calculate a value based on two other cells, and then have it displayed in another. This is working fine, but how would I limit the number of decimal places it shows?
5
Select the output cell, right click and select "Format Cells..."
Select the "Number" tab and then "Number" in the list.
Set the "Decimal places" value to the desired value.
3
There should be two buttons on toolbar to increase and decrease number of decimal places displayed:
2
Another option would be to use the round function.
=Round(1234.5678, 2) would yield 1234.56
=Round(1234.5678, 0) would yield 1234
=Round(1234.5678, -2) would yield 1200
Wrap this around your other calculation and you can control not only how it displays, but the accuracy of the number if it is used by another function later on. This becomes important when trying to use Excel to manage money where the number of decimal places is fixed and calculations should all be to that same level of precision.
-2
Use the round function:
=ROUND(AVERAGE(B2:B13),2)
1
This was already suggested here http://superuser.com/a/102796/36744 with quite a bit more detail.
– Der Hochstapler – 2013-03-26T13:13:43.377
+1. Or what ever number you want. You can also select a group of cells and set them – Xavierjazz – 2010-01-30T22:49:26.417
Much appreciated! – AtomFury – 2010-01-30T22:49:31.503
@Xavierjazz - indeed, I've corrected the post. I don't know why I assumed the OP wanted 2 dp. – ChrisF – 2010-01-30T22:51:25.447
this is correct – at. – 2010-01-30T23:57:59.963