Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Price Pointing/Complex Rounding

I have a client who is trying to price his shop stock using Excel.

The problem is that he has taken his cost price and multiplied it by
his markup, which is an easy formula.

He is now left with his selling price, but what he wants to do is
round the selling price up to either the nearest £5 or £10 and
subtract 5p.
To explain this further, if his exact selling price is £123.45 he
wants to round this up to £124.95, but if his exact selling price is
£125.67 he wants to round this up to £130.95.

Does anyone know how to do this formula in Excel, in words it will
basically say if below pounds ending in the multiples of 5, round up
and subtract 5p. But if above pounds ending in 5 round up to the
nearest 10 and subtract 5p.

I hope this makes sense, but I just can't find a formula that works

Thanks in advance

Neil.
  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Price Pointing/Complex Rounding

Neil,

I can't figure out your example.£123.45 rounds up £5 to £125, that's fine.
But how does £125 rounding up £10 work out as £131? If it should be £135,
this should work

=ROUNDUP(A1/5,0)*5+((MOD(INT(A1),5)=0)*5)-0.05

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Neil Mcknight" wrote in message
m...
I have a client who is trying to price his shop stock using Excel.

The problem is that he has taken his cost price and multiplied it by
his markup, which is an easy formula.

He is now left with his selling price, but what he wants to do is
round the selling price up to either the nearest £5 or £10 and
subtract 5p.
To explain this further, if his exact selling price is £123.45 he
wants to round this up to £124.95, but if his exact selling price is
£125.67 he wants to round this up to £130.95.

Does anyone know how to do this formula in Excel, in words it will
basically say if below pounds ending in the multiples of 5, round up
and subtract 5p. But if above pounds ending in 5 round up to the
nearest 10 and subtract 5p.

I hope this makes sense, but I just can't find a formula that works

Thanks in advance

Neil.



  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Price Pointing/Complex Rounding

No sorry, rounding to the nearest £10 should make £125 round up to £130.

Basically if it is under the nearest £5 round to it, but if it is over £5
then round to the nearest £10.

Eg 123.23 becomes 125
125.50 becomes £130

I hope this explains better.
Thanks

Neil.

On 3/4/04 11:51, in article , "Bob
Phillips" wrote:

Neil,

I can't figure out your example.£123.45 rounds up £5 to £125, that's fine.
But how does £125 rounding up £10 work out as £131? If it should be £135,
this should work

=ROUNDUP(A1/5,0)*5+((MOD(INT(A1),5)=0)*5)-0.05


  #5   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Price Pointing/Complex Rounding

If 125 rounds up, sounds like:

=CEILING(A1+0.0001,5)

will work for you.

In article ,
Neil Mcknight wrote:

No sorry, rounding to the nearest £10 should make £125 round up to £130.

Basically if it is under the nearest £5 round to it, but if it is over £5
then round to the nearest £10.

Eg 123.23 becomes 125
125.50 becomes £130

I hope this explains better.
Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Price Pointing/Complex Rounding

Hi Neil,

SO how do you get ... £125.67 he wants to round this up to £130.95 ... in
your original message. If this should be £129.95, then just use

=ROUNDUP(A1/5,0)*5-0.05

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Neil Mcknight" wrote in message
...
No sorry, rounding to the nearest £10 should make £125 round up to £130.

Basically if it is under the nearest £5 round to it, but if it is over £5
then round to the nearest £10.

Eg 123.23 becomes 125
125.50 becomes £130

I hope this explains better.
Thanks

Neil.

On 3/4/04 11:51, in article , "Bob
Phillips" wrote:

Neil,

I can't figure out your example.£123.45 rounds up £5 to £125, that's

fine.
But how does £125 rounding up £10 work out as £131? If it should be

£135,
this should work

=ROUNDUP(A1/5,0)*5+((MOD(INT(A1),5)=0)*5)-0.05




  #7   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Price Pointing/Complex Rounding

Thank very muc, this seems to do exactly what I am loking for.

Sorry about the original confusion with my silly examples, but you seem to
have got to the answer I wanted.

Thanks again

Neil.

On 3/4/04 15:18, in article , "Bob
Phillips" wrote:

Hi Neil,

SO how do you get ... £125.67 he wants to round this up to £130.95 ... in
your original message. If this should be £129.95, then just use

=ROUNDUP(A1/5,0)*5-0.05


  #8   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Price Pointing/Complex Rounding

Good, I'm glad we got there.

Bob

"Neil Mcknight" wrote in message
...
Thank very muc, this seems to do exactly what I am loking for.

Sorry about the original confusion with my silly examples, but you seem to
have got to the answer I wanted.

Thanks again

Neil.

On 3/4/04 15:18, in article , "Bob
Phillips" wrote:

Hi Neil,

SO how do you get ... £125.67 he wants to round this up to £130.95 ...

in
your original message. If this should be £129.95, then just use

=ROUNDUP(A1/5,0)*5-0.05




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
Setting a sale price and rounding up Chris Excel Worksheet Functions 4 July 2nd 08 10:23 PM
Need to increase price by % and rounding up and down klafert Excel Discussion (Misc queries) 5 January 5th 08 12:00 PM
Price calculation - rounding Orninn Excel Discussion (Misc queries) 6 January 23rd 07 04:10 PM
price list rounding francesclaire1 New Users to Excel 1 October 27th 06 09:15 PM
Rounding to price points Chris Wetz Excel Worksheet Functions 6 March 1st 05 01:07 PM


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

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

About Us

"It's about Microsoft Excel"