ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   rounding to a specific number (https://www.excelbanter.com/excel-worksheet-functions/9742-re-rounding-specific-number.html)

Roland

rounding to a specific number
 
Assume the unrounded price (e.g., 123.34) is in cell A1.

=IF(MOD(A1*100,10)5,TRUNC(A1,1)+0.09,TRUNC(A1,1)-0.01)



"reno" wrote:

when caluclating retail prices, with various costs and various gross margins
want to make the calculation and then the last digit ends in say 9. So if
actual calculation's last digit is 0-5 it would round down to nearest 9; or
5 rounds up to next 9.



All times are GMT +1. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com