Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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. |
#2
![]() |
|||
|
|||
![]()
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. |
#3
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Computing Sales Tax and Retail Price from a number | Excel Worksheet Functions | |||
Plot points with same x-value in same series? | Charts and Charting in Excel | |||
space between y axis and data points.. | Charts and Charting in Excel | |||
Newbie to charts question - projecting values between data points | Excel Discussion (Misc queries) | |||
Price rounding - exception formula required | Excel Worksheet Functions |