Price rounding - exception formula required

A

Alex McCourty

At present, I'm using a tried and trusted formula for rounding prices in
Excel (from the G2 cell) to either .50 or .95 as follows:

=ROUNDDOWN(G2+0.041,0)+IF(G2-ROUNDDOWN(G2+0.041,0)>=0.5,0.95,0.5)

I've now been asked if an exception can be made to the formula for prices of
100+ which rounds down to the nearest whole unit, i.e. 101.95 becomes 101,
503.59 becomes 503 and so on.

Any help appreciated.

Regards
Alex McCourty
E-mail: (e-mail address removed)
 
B

Bernard Liengme

=IF(G2>=100, rounddown(G2,0),
ROUNDDOWN(G2+0.041,0)+IF(G2-ROUNDDOWN(G2+0.041,0)>=0.5,0.95,0.5) )
 
K

K.S.Warrier

Hi,
If you want to round a number in G2 to the nearest 0.50,then use the formula
as
=if(G2+0.50>int(g2)+1,int(g2)+1,int(g2))
Thank you,
K.S.Warrier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top