How to Use ROUNDUP Function in Excel (6 Examples)

Here’s an overview of the ROUNDUP function and its most common uses.

Excel ROUNDUP Function


ROUNDUP Function: Syntax & Arguments

⦿ Function Objective

The ROUNDUP function rounds a number away from zero.

⦿ Syntax

ROUNDUP(number, num_digits)

Excel ROUNDUP Function

⦿ Arguments

Argument Required/Optional Explanation
number Required The number to round up.
num_digits Required The place at which the number should be rounded.

⦿ Return Value

The ROUNDUP function returns a rounded number.

⦿ Version

The ROUNDUP function has been introduced in Excel 2003 version and is available for all subsequent versions.


How to Use the ROUNDUP Function in Excel: 6 Examples

We’ll use the following two tables for demonstrating the applications of the ROUNDUP function in Excel.

Excel ROUNDUP Function

Excel ROUNDUP Function


Example 1 – Rounding a Number Up to The Nearest Whole Number

We will round up the times of the following table to the nearest whole number by using the ROUNDUP function.

Excel ROUNDUP Function

  • Insert the following formula in the first output cell (D5):
=ROUNDUP(C5,0)

Here, C5 is the time which we want to round up and 0 is the number digit that will round up the value to the nearest whole number.

whole number

  • Hit Enter and drag down the Fill Handle to fill the column.

whole number

Result:

whole number

You can also get the result by inserting a direct input instead of reference:

=ROUNDUP(1260.98769,0)

whole number


Example 2 – Rounding a Number Up with a Positive Number Digit

You can round up the values for any positive number digits to the right of the decimal point by using the ROUNDUP function.

Excel ROUNDUP Function

  • Insert the following formula in the first output cell (D5):
=ROUNDUP(C5,1)

Here, C5 is the time which we want to round up and 1 is the number digit that will round up the value to 1 decimal place.

positive number digit

  • Hit Enter and drag down the Fill Handle tool.

positive number digit

Result:

positive number digit

You can round up to two places right of the decimal point by using the following formula:

=ROUNDUP(C5,2)

Here, C5 is the time which we want to round up and 2 is the number digit that will round up the value to 2 decimal places.

positive number digit

For rounding up the times to three places right of the decimal point, you can use the following formula:

=ROUNDUP(C5,3)

C5 is the time which we want to round up and 3 is the number digit that will round up the value to 3 decimal places.

Excel ROUNDUP Function


Example 3 – Rounding a Number Up with a Negative Number Digit

We will round up the values for any negative number digits to the left of the decimal point by using the ROUNDUP function.

Excel ROUNDUP Function

  • Insert the following formula in the first output cell (D5):
=ROUNDUP(C5,-1)

Here, C5 is the distance which we want to round up and –1 is the number digit. This negative number will round up the value to the nearest 10.

negative number digit

  • Press Enter and drag down the Fill Handle.

negative number digit

Result:

negative number digit

You can round up the distances to two places left of the decimal point by using the following formula:

=ROUNDUP(C5,-2)

Here, C5 is the distance which we want to round up and –2 is the number digit that will round up the value to the nearest 100.

negative number digit

For rounding up the distances to three places left of the decimal point, you can use the following formula:

=ROUNDUP(C5,-3)

C5 is the distance which we want to round up and –3 is the number digit that will round up the value to the nearest 1000.

Excel ROUNDUP Function


Example 4 – Using The ROUNDUP Function in a Formula

We will determine the speed of the participants by dividing the distances by times and round up the values to the two decimal places.

Excel ROUNDUP Function

  • Insert the following formula in the first output cell (E5):
=ROUNDUP((C5/D5),2)

C5 is the distance and D5 is the time

  • (C5/D5)→Divides the distance by the time.
    Output→1.15748
  • ROUNDUP((C5/D5),2) becomes
    ROUNDUP(1.15748,2)→Rounds up the value to two decimal places by using the number digit 2.
    Output→1.16

formula

  • Hit Enter and use the Fill Handle to AutoFill.

formula

Result:

formula


Example 5 – Using The ROUNDUP Function in VBA Code

You can use the ROUNDUP function in the VBA code also. 

Excel ROUNDUP Function

  • Go to the Developer tab and select Visual Basic.

VBA

  • The Visual Basic Editor will open up.
  • Go to the Insert tab and select the Module option.

VBA

  • A Module will be created.

VBA

  • Insert the following code:
Sub roundnumber()

    Range("D5") = Application.WorksheetFunction.RoundUp((Range("C5")), 2)
    Range("D6") = Application.WorksheetFunction.RoundUp((Range("C6")), 2)
    Range("D7") = Application.WorksheetFunction.RoundUp((Range("C7")), 2)
    Range("D8") = Application.WorksheetFunction.RoundUp((Range("C8")), 2)
    Range("D9") = Application.WorksheetFunction.RoundUp((Range("C9")), 2)
    Range("D10") = Application.WorksheetFunction.RoundUp((Range("C10")), 2)

End Sub

ROUNDUP will round up the values of the cells C5 to C10 of Column C to 2 decimal places and we will get the outputs in corresponding cells of Column D.

VBA

  • Press F5.

Result:

Excel ROUNDUP Function


Example 6 – Using the ROUNDUP Function for Negative Values

For the negative temperature of the substances, you can also round them up by using the ROUNDUP function.

Excel ROUNDUP Function

  • We will try to get the nearest negative integers by using the following formula
=ROUNDUP(C5,0)

C5 is the negative temperature that we want to round up and 0 is the number digit that will round up the value to the nearest whole number.

negative values

  • You can round up the negative temperatures to two places right of the decimal point by using the following formula.
=ROUNDUP(C5,2)

C5 is the negative temperature that we want to round up and 2 is the number digit that will round up the value to 2 decimal places.

negative values

  • For rounding up the negative temperatures to two places left of the decimal point, you can use the following formula.
=ROUNDUP(C5,-2)

C5 is the negative temperature that we want to round up and –2 is the number digit that will round up the value to the nearest 100.

negative values


Practice Section

We have provided a Practice section like below in a sheet named Practice.

practice


Download the Practice Workbook


<< Go Back to Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo