Log in
x
or
x
x
Register
x

or
0
0
0
s2sdefault

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 / round up / round down a range of cells with Kutools for Excel


Round / Round up / Round down a range of numbers without formula:

With Kutools for Excel's Round feature, you can quickly round, round up, round down or round to even a range of cells as you need without any formulas.

doc round numbers 8

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


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 (A2:A10) need to be rounded. Please do as follows:

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

doc round numbers 1

2. Then press Enter key, and the value in cell A2 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:

doc round numbers 2


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: Round a range of cells:

Sub RoundNum()
'Updateby20140128
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)
Next
End Sub

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

doc round numbers 3

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

doc round numbers 4

5. Click OK. All of the cells have been rounded with three decimal places. See screenshot:

doc round numbers 5


Quickly round / Round up / round down a range of cells with Kutools for Excel

The Round feature 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 60 days. 

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

1. Select the range that you want to round, and then click Kutools > Round. See screenshot:

doc round numbers 6

2. In the Round without Formula dialog box, insert the number decimal you want to round based on intot he Decimal place, then select Rounding, Rounding up, Rounding down which you want to use, and then click Ok button, all numbers have been rounded as you need, see screenshot:

doc round numbers 7

Click Download and free trial Kutools for Excel Now !


Demo: Quickly round / round up / round down a range of cells

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


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

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Jayesh Chavda · 6 months ago
    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...
  • To post as a guest, your comment is unpublished.
    Conrad042 · 7 months ago
    This site is amazing!!!
  • To post as a guest, your comment is unpublished.
    #AyeDumbass · 3 years ago
    Aye dumbäss, It does exist and the answer was alot of help:
    http://www.extendoffice.com/product/kutools-for-excel.html
    Stfu and go cry to yourself cause you don't know how to operate a damn search engine.
  • To post as a guest, your comment is unpublished.
    fuckyou · 3 years ago
    thanks for the help but kuttol doesnt fuckiong exist you cunt