Rounding decimal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Working on a spread sheet that I would like a set cell (example $10.01) to be
rounded to the nearest $.95, $.50. $25. I'm want to round on my pricing to
these amounts.

Thanks for your help.
 
Ok, assuming I understand your criteria correctly, that you want all prices
to round to the NEAREST of these 3 possibilities (.25, .50, .95) then this
should work:

=IF(A1-INT(A1)<=0.1,INT(A1)-0.05,IF(A1-INT(A1)<=0.375,INT(A1)+0.25,IF(A1-INT(A1)<=0.735,INT(A1)+0.5,INT(A1)+0.95)))

HTH,
Elkar
 
Back
Top