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?
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:
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:
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.
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!
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() 'Updateby Extendoffice 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 button to run the code. Select the range you want to round from the pop-up diallog, See screenshot:
4. Click OK, and then type the number of decimal you want to round in another dialog, see screenshot:
5. Click OK. All of the cells have been rounded with three decimal places. See screenshot:
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:
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:
You are guest
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 4 years agoThe 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.· 4 years agoThis site is amazing!!!
To post as a guest, your comment is unpublished.· 7 years agoAye 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.
To post as a guest, your comment is unpublished.· 7 years agothanks for the help but kuttol doesnt fuckiong exist you cunt
To post as a guest, your comment is unpublished.· 1 years agoyour comment is unhelpful