How to round a range of cells in Excel?

Supposing you have a range of numbers with several decimal places, and now you want to round them with two decimal places. Such as rounding 2.1054 to 2.11. How to round a range of cells in Excel quickly?

Round a range of cells with ROUND function

Round a range of cells with VBA code

Quickly round a range of cells with Kutools for Excel

arrow blue right bubble Round a range of cells with ROUND function

You can use the formula ROUND (number, number-digits) to accomplish this task. For example, I have a range (A1:A10) need to be rounded. Please do as follows:

1. Click a blank cell C1 and input the formula: =ROUND (A1, 2), see screenshot:


2. Then press Enter key, and the value in cell A1 will be rounded to a number with two decimal places. Then drag the fill handle over the range of cells that you want to apply this formula. See screenshot:


3. As they are formulas, when you need to copy them to other cells, please paste as values.

arrow blue right bubble Round a range of cells with VBA code

With following VBA code, you can round a range of cells quickly.

1. Select the range you want to round.

2. Click Developer > Visual Basic, a new Microsoft Visual Basic for applications window will be displayed, click Insert > Module, and input the following code into the Module:

VBA: to round a range of cells to two decimal places

Sub RoundNum()
Dim Rng As Range
Dim WorkRng As Range
Dim xNum As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xNum = Application.InputBox("Decimal", xTitleId, Type:=1)
For Each Rng In WorkRng
    Rng.Value = Application.WorksheetFunction.Round(Rng.Value, xNum)
End Sub

3. Then click doc-round-calculation-3 button to run the code. Select the range you want to round inton the pop-up diallog, See screenshot:


4. Click Ok, and then type the number of decimal you want in another dialog, see screenshot:


5. Click Ok. All of the cells have been rounded with two decimal places.

arrow blue right bubble Quickly round a range of cells with Kutools for Excel

The Operation Tools of Kutools for Excel is a very handy tool can solve this problem quickly and comfortably.

Kutools for Excel: with more than 120 handy Excel add-ins, free to try with no limitation in 30 days. Get it Now

If you have installed Kutools for Excel, please do as the following steps:

1. Select the range that you want to round.

2. Click Kutools > Operation > Operation Tools. See screenshot:


3. In the operation Tools dialog box, select Rounding from Operation, and insert number 2 in the Operand box (to round a range of cells with two decimal places). And you can see the results from the Preview Pane. See screenshot:


4. Then click OK or Apply. It will convert a range of values into numbers with two decimal places.

Note: If you want to create formulas as well, you can check Create formulas option. If the selected cells include formulas, and you don’t want to round the calculated results of formulas, please check Skip formula cells option.

To know more about this feature click here.

Related articles:


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more btn download btn purchase


Permalink -19 fuckyou
thanks for the help but kuttol doesnt fuckiong exist you cunt
2014-01-06 14:15 Reply Reply with quote Quote
Permalink +9 #AyeDumbass
Aye dumbäss, It does exist and the answer was alot of help:
Stfu and go cry to yourself cause you don't know how to operate a damn search engine.
2014-03-20 19:58 Reply Reply with quote Quote
Permalink 0 Conrad042
This site is amazing!!!
2017-04-18 13:33 Reply Reply with quote Quote
Permalink 0 Jayesh Chavda
The above VBA code is works fine, but i want the same result in multiple worksheet for selected cells only... pls can anyone help me...
2017-05-14 10:07 Reply Reply with quote Quote

Add comment

Security code