ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do you change $42.79 to an even number ($42.80) (https://www.excelbanter.com/excel-worksheet-functions/160515-how-do-you-change-%2442-79-even-number-%2442-80-a.html)

Jean9

how do you change $42.79 to an even number ($42.80)
 
My program has to calculate a percentage recoverable and then this amount is
deducted from a maximum of 3 figures. My problem is that if the percentage
is an odd number, I will end up being out .01. What do I do to avoid this
problem?

Bob Umlas

how do you change $42.79 to an even number ($42.80)
 
=EVEN(A1*100)/100
Bob Umlas
Excel MVP

"Jean9" wrote in message
...
My program has to calculate a percentage recoverable and then this amount
is
deducted from a maximum of 3 figures. My problem is that if the
percentage
is an odd number, I will end up being out .01. What do I do to avoid this
problem?




T. Valko

how do you change $42.79 to an even number ($42.80)
 
Try this.

A1 = some number like 42.79

=ROUND(A1/0.02,0)*0.02

--
Biff
Microsoft Excel MVP


"Jean9" wrote in message
...
My program has to calculate a percentage recoverable and then this amount
is
deducted from a maximum of 3 figures. My problem is that if the
percentage
is an odd number, I will end up being out .01. What do I do to avoid this
problem?




Gord Dibben

how do you change $42.79 to an even number ($42.80)
 
=ROUND(A1,1)

Format to 2 DP


Gord Dibben MS Excel MVP

On Tue, 2 Oct 2007 09:50:01 -0700, Jean9
wrote:

My program has to calculate a percentage recoverable and then this amount is
deducted from a maximum of 3 figures. My problem is that if the percentage
is an odd number, I will end up being out .01. What do I do to avoid this
problem?




All times are GMT +1. The time now is 05:02 AM.

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