ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Rounding to two even decimal places (https://www.excelbanter.com/excel-worksheet-functions/142866-rounding-two-even-decimal-places.html)

NeedHelp

Rounding to two even decimal places
 
I need some help with a formula that will round a number to two decimal
places, but the two decimal places must be an even number.

For example:
$12.115 through $12.134 would be $12.12
$12.135 through $12.154 would be $12.14

Would prefer not to use the ISEVEN formula to avoid add-in problems for
different users of my spreadsheet.

Thanks for your help!

bpeltzer

Rounding to two even decimal places
 
Subtract .005, divide by 2, round, then double
=round(((a1-.005)/2),2)*2

"needhelp" wrote:

I need some help with a formula that will round a number to two decimal
places, but the two decimal places must be an even number.

For example:
$12.115 through $12.134 would be $12.12
$12.135 through $12.154 would be $12.14

Would prefer not to use the ISEVEN formula to avoid add-in problems for
different users of my spreadsheet.

Thanks for your help!


NeedHelp

Rounding to two even decimal places
 
Brilliant -thanks so much!

"bpeltzer" wrote:

Subtract .005, divide by 2, round, then double
=round(((a1-.005)/2),2)*2

"needhelp" wrote:

I need some help with a formula that will round a number to two decimal
places, but the two decimal places must be an even number.

For example:
$12.115 through $12.134 would be $12.12
$12.135 through $12.154 would be $12.14

Would prefer not to use the ISEVEN formula to avoid add-in problems for
different users of my spreadsheet.

Thanks for your help!


Stan Brown

Rounding to two even decimal places
 
Tue, 15 May 2007 10:54:01 -0700 from needhelp
:
I need some help with a formula that will round a number to two decimal
places, but the two decimal places must be an even number.

For example:
$12.115 through $12.134 would be $12.12
$12.135 through $12.154 would be $12.14


Put =ROUND( , 2)
around your calculation.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


All times are GMT +1. The time now is 12:01 PM.

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