Rounding Up to a Value Ending in 9

Written by Allen Wyatt (last updated August 26, 2023)
This tip applies to Excel 2007, 2010, 2013, 2019, Excel in Microsoft 365, and 2021


2

Bob performs calculations and wants to round the results up to the next value that ends in 9. In other words, to set a target retail price he wants to calculate the various costs and then round the answers up so that they end in 9. Thus, $1.42 rounds to $1.49, $1.49 has no change, $9.01 rounds to $9.09, etc.

There are actually quite a few formulas you can use to adjust your prices as you desire. Excel provides a good number of different rounding functions that can be tried. You might think that you could use a simple ROUNDUP function to do the work, as shown in the following:

=ROUNDUP(A1,1)-0.01

This won't work properly, however, if the value in A1 ends with a zero (1.00, 1.10, 1.20, etc.). In that case the formula simply subtracts 0.01 from the original value, converting 1.00 to 0.99, for instance.

The solution is to add 0.01 to the value in A1 before you do the rounding, in this manner:

=ROUNDUP(A1+0.01,1)-0.01

You can also use the CEILING function in almost the exact same manner as you did the ROUNDUP function:

=CEILING(A1+0.01,0.1)-0.01

A different (and shorter) approach, though, is to use the ROUNDDOWN function to do the rounding, in this manner:

=ROUNDDOWN(A1,1)+0.09

You could also use the straight ROUND function in this manner:

=ROUND(A1+0.05,1)-0.01

Shorter still is a solution that doesn't rely on any of the built-in rounding functions:

=(INT(A1*10)+0.9)/10

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12825) applies to Microsoft Excel 2007, 2010, 2013, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Protecting Bookmarks

Bookmarks are a great boon in developing and working with documents—until someone deletes them. When it comes to ...

Discover More

Adjusting Column Widths on Joined Tables

Each table in a document can have different numbers of columns and different widths for columns. If you want to join two ...

Discover More

Deleting a Range of Pages

Need to delete a range of pages out of the middle of your document? It's easy to do using editing techniques you already ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Rounding to Two Significant Digits

Excel provides a variety of functions you can use to round values in any number of ways. It does not, however, provide a ...

Discover More

Rounding Up to the Next Half

When processing data it is not unusual to need to round that data in some way. For instance, you may need to round a ...

Discover More

Using the MROUND Worksheet Function

If you want to round a value to some multiple of a whole number, you'll want to become familiar with the MROUND function. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 5?

2023-08-27 10:37:48

J. Woolley

Malcolm Standage mentioned Precision as Displayed. For more on that subject, see https://excelribbon.tips.net/T013765_Permanently_Turning_On_Set_Precision_As_Displayed.html
Also, see https://excelribbon.tips.net/T009901_Getting_Rid_of_Negative_Zero_Amounts.html
My comment there describes the PrecisionToggleLink function, which has been deleted and replaced by the following function:
=RunMacroLink("TogglePrecision",[Friendly_Name],[Screen_Tip])
See https://sites.google.com/view/MyExcelToolbox


2023-08-26 22:59:06

Malcolm Standage

How about using "Precision as displayed"


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.