by Allen Wyatt
(last updated June 23, 2018)
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:
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:
You can also use the CEILING function in almost the exact same manner as you did the ROUNDUP function:
A different (and shorter) approach, though, is to use the ROUNDDOWN function to do the rounding, in this manner:
You could also use the straight ROUND function in this manner:
Shorter still is a solution that doesn't rely on any of the built-in rounding functions:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12825) applies to Microsoft Excel 2007, 2010, and 2013.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Do you need your numbers to be rounded to an even integer value? How you accomplish the task depends on the nature of the ...Discover More
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
Need to round a value by a power of 10? You can do it by using the ROUND function as described in this tip.Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.