Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex McCourty
 
Posts: n/a
Default Price rounding - exception formula required

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:


  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

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


--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Alex McCourty" wrote in message
...
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:



  #3   Report Post  
K.S.Warrier
 
Posts: n/a
Default

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

"Alex McCourty" wrote:

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:



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Formula for conditional "ifs"? ringo tan New Users to Excel 4 December 1st 04 01:42 PM


All times are GMT +1. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"