Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chris Wetz
 
Posts: n/a
Default Rounding to price points

I want to round a series of numbers to the nearest price point of 5 or 9
pence (up or down). E.g. £12.74 would become £12.75, £12.78 would become
£12.79, £12.91 would become £12.89

Any ideas? I'm happy to use a series of calculations if there is no single
function that will do the trick.

TIA,

Chris.
  #3   Report Post  
Chris Wetz
 
Posts: n/a
Default

Hi Bob.

Don't care whether it's nice or not!

This certainly brings the prices to the price points required, but by
rounding up. Is there any way of getting the initial number to the 'nearest'
price point?

Many thanks for your help so far!

Chris.

"Bob Phillips" wrote:

HI Chris,

Not nice but the best I could do

=IF(MOD(A1,0.1)*100<5,CEILING(A1,0.05),A1-MOD(A1,0.1)+0.09)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" <Chris wrote in message
...
I want to round a series of numbers to the nearest price point of 5 or 9
pence (up or down). E.g. £12.74 would become £12.75, £12.78 would become
£12.79, £12.91 would become £12.89

Any ideas? I'm happy to use a series of calculations if there is no

single
function that will do the trick.

TIA,

Chris.




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

In that scenario, where would 12.92 go, 12.95 or 12.89?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" wrote in message
...
Hi Bob.

Don't care whether it's nice or not!

This certainly brings the prices to the price points required, but by
rounding up. Is there any way of getting the initial number to the

'nearest'
price point?

Many thanks for your help so far!

Chris.

"Bob Phillips" wrote:

HI Chris,

Not nice but the best I could do

=IF(MOD(A1,0.1)*100<5,CEILING(A1,0.05),A1-MOD(A1,0.1)+0.09)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" <Chris wrote in message
...
I want to round a series of numbers to the nearest price point of 5 or

9
pence (up or down). E.g. £12.74 would become £12.75, £12.78 would

become
£12.79, £12.91 would become £12.89

Any ideas? I'm happy to use a series of calculations if there is no

single
function that will do the trick.

TIA,

Chris.






  #5   Report Post  
Chris Wetz
 
Posts: n/a
Default

Excellent question - my Buyer says that it would be difficult to set those
types of conventions! I will therefore leave it to him to resolve.

Thanks for your help, Bob.

Chris.

"Bob Phillips" wrote:

In that scenario, where would 12.92 go, 12.95 or 12.89?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" wrote in message
...
Hi Bob.

Don't care whether it's nice or not!

This certainly brings the prices to the price points required, but by
rounding up. Is there any way of getting the initial number to the

'nearest'
price point?

Many thanks for your help so far!

Chris.

"Bob Phillips" wrote:

HI Chris,

Not nice but the best I could do

=IF(MOD(A1,0.1)*100<5,CEILING(A1,0.05),A1-MOD(A1,0.1)+0.09)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" <Chris wrote in message
...
I want to round a series of numbers to the nearest price point of 5 or

9
pence (up or down). E.g. £12.74 would become £12.75, £12.78 would

become
£12.79, £12.91 would become £12.89

Any ideas? I'm happy to use a series of calculations if there is no
single
function that will do the trick.

TIA,

Chris.








  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

It gets worse. The same problem applies to ending with 7 as to ending with
2. so if it ends with either of those, I don't change it. Otherwise

=IF(OR(RIGHT(A1,1)="2",RIGHT(A1,1)="7"),A1,IF(MOD( A1,0.1)*100<2,INT(A1*10)/1
0-0.01,IF(MOD(A1,0.1)*100<7,ROUND(A1*20,0)/20,A1-MOD(A1,0.1)+0.09)))

Enjoy :-)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" wrote in message
...
Excellent question - my Buyer says that it would be difficult to set those
types of conventions! I will therefore leave it to him to resolve.

Thanks for your help, Bob.

Chris.

"Bob Phillips" wrote:

In that scenario, where would 12.92 go, 12.95 or 12.89?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" wrote in message
...
Hi Bob.

Don't care whether it's nice or not!

This certainly brings the prices to the price points required, but by
rounding up. Is there any way of getting the initial number to the

'nearest'
price point?

Many thanks for your help so far!

Chris.

"Bob Phillips" wrote:

HI Chris,

Not nice but the best I could do

=IF(MOD(A1,0.1)*100<5,CEILING(A1,0.05),A1-MOD(A1,0.1)+0.09)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chris Wetz" <Chris wrote in message
...
I want to round a series of numbers to the nearest price point of

5 or
9
pence (up or down). E.g. £12.74 would become £12.75, £12.78 would

become
£12.79, £12.91 would become £12.89

Any ideas? I'm happy to use a series of calculations if there is

no
single
function that will do the trick.

TIA,

Chris.








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
Computing Sales Tax and Retail Price from a number Lani Jo Excel Worksheet Functions 8 February 16th 05 08:06 PM
Plot points with same x-value in same series? smKing Charts and Charting in Excel 1 February 3rd 05 07:32 PM
space between y axis and data points.. Dave R. Charts and Charting in Excel 3 January 8th 05 04:56 AM
Newbie to charts question - projecting values between data points 38N90W Excel Discussion (Misc queries) 3 January 6th 05 05:15 AM
Price rounding - exception formula required Alex McCourty Excel Worksheet Functions 2 November 6th 04 08:33 AM


All times are GMT +1. The time now is 05:34 PM.

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"