Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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 300 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!


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

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!
officetab bottom
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 · 2 years 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 · 2 years ago
    This site is amazing!!!
  • To post as a guest, your comment is unpublished.
    #AyeDumbass · 5 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 · 6 years ago
    thanks for the help but kuttol doesnt fuckiong exist you cunt