How to limit number of decimal places in formula in Excel?
For example, you sum a range and get a sum value with four decimal places in Excel. You may think of formatting this sum value to one decimal place in the Format Cells dialog box. Actually you can limit the number of decimal places in formula directly. This article is talking about limiting number of decimal places with Format Cells command, and limiting number of decimal places with Round formula in Excel.
- Limit number of decimal places with Format Cell command in Excel
- Limit number of decimal places in formulas in Excel
- Limit number of decimal places in multiple formulas in bulk
- Limit number of decimal places in multiple formulas
Normally we can format cells to limit the number of decimal places in Excel easily.
1. Select the cells you want to limit the number of decimal places.
2. Right click the selected cells, and select the Format Cells from the right-clicking menu.
3. In the coming Format Cells dialog box, go to the Number tab, click to highlight the Number in the Category box, and then type a number in the Decimal Places box.
For example, if you want to limit only 1 decimal place for selected cells, just type 1 into the Decimal places box. See below screen shot:
4. Click the OK in the Format Cells dialog box. Then you will see all decimals in selected cells are changed to one decimal place.
Note: After selecting cells, you can click the Increase Decimal button or Decrease Decimal button directly in the Number group on the Home tab to change the decimal places.
Let's say you calculate the sum of a series of numbers, and you want to limit the number of decimal places for this sum value in the formula, how could you get it done in Excel? You should try the Round function.
The basic Round formula syntax is:
And if you want to combine the Round function and other formula, the formula syntax should be changed to
In our case, we want to limit one decimal place for sum value, so we can apply below formula:
If you have Kutools for Excel installed, you can apply its Operation feature to modify multiple entered formulas in bulk, such as set rounding in Excel. Please do as follows:
1. Select the formula cells whose decimal places you need to limit, and click Kutools > More > Operation.
2. In the Operation Tools dialog, please click to highlight Rounding in the Operation list box, type the number of decimal places in the Operand section, and check the Create formulas option.
3. Click the Ok button.
Now you will see the all formula cells are rounded to the specified decimal places in bulk. See screenshot:
Tip: If you need to round down or round up multiple formula cells in bulk, you can set as follows: in the Operation Tools dialog, (1) select Custom in the Operation list box, (2) type =ROUNDUP(?, 2) or =ROUNDDOWN(?, 2) in the Custom section, and (3) check the Create formulas option. See screenshot:
Normally the Decimal feature can decrease the decimal places in cells, but the actual values showing in formula bar don’t change at all. Kutools for Excel’s Round utility can help you round values up/down/to even to specified decimal places easily.
This method will round the formula cells to the specified number of decimal places in bulk. However, it will remove formulas from these formula cells and remain the rounding results only.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!