+ Reply to Thread
Results 1 to 13 of 13

Rounding up to a price

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Rounding up to a price

    Hi

    I'm trying to come up with a solution that will allow to a price to be either rounded up to a 4 or 9 pence end figure,
    E.g. Cell A1 - 」2.21 rounding upto 」2.24
    but if the value is 」2.25 it will round up to 」2.29


    Working on afew formulas to exract the last char and either take it from either the 4 or 9 and add the variance, if someone has a working solution that would finish it before i figure it out that would be a great time saver!

    thanks
    Adi

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Rounding up to a price

    May be this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Rounding up to a price

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Rounding up to a price

    Hi

    One way
    =IF(MOD(A1,1.1)<=0.04,INT(A1*10)/10+0.04,INT(A1*10)/10+0.09)
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  5. #5
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Rounding up to a price

    Hiya Adi

    There has to be an easier way than this, but here you go; it works.

    =IF(A1-ROUNDDOWN(A1,1)<0.05,A1-(RIGHT(A1,1)/100)+0.04,A1-(RIGHT(A1,1)/100)+0.09)

  6. #6
    Registered User
    Join Date
    04-11-2012
    Location
    Johannesburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Rounding up to a price

    Hi try

    =IF(CEILING(A1,0.05) = CEILING(A1, 0.1), CEILING(A1, 0.05)-0.01, CEILING(A1, 0.05))

  7. #7
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Rounding up to a price

    Hi

    thanks for the help, SixthSense yours worked but only if it was ending in a 」?.?1
    Roger Govier yours did the trick nicely, just need to figure out how it works!!!
    Adi

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding up to a price

    =MROUND(A1,0.05)+0.04 maybe
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  9. #9
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Rounding up to a price

    Sorry

    One way
    =IF(MOD(A1,1.1)<=0.04,INT(A1*10)/10+0.04,INT(A1*10)/10+0.09)
    That doesn't work in all conditions, try this instead

    =IF(--RIGHT(A1*100)<=4,(ROUNDDOWN(A1*100,-1)+4)/100,(ROUNDDOWN(A1*100,-1)+9)/100)

  10. #10
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Rounding up to a price

    kenny.fsw, thanks your route would have been the way i would have taken, i had partially written in the same structure

    thanks All

  11. #11
    Registered User
    Join Date
    08-24-2013
    Location
    INDIA
    MS-Off Ver
    MS OFFICE 2010
    Posts
    2

    Re: Rounding up to a price

    in a COLUMN type any value just like 50 on a1 and series start value 2( sheet 1)
    (sheet 2) ai cell
    =IF(OFFSET(Sheet1!$A$1,ROW(A1)-1,COLUMN(A1)-1)=0,"",OFFSET(Sheet1!$A$1,ROW(A1)-1,COLUMN(A1)-1))+Sheet1!A1
    try this
    but one prob. the value is add but when i seved and reopen change a1 value in sheet 1; but that can't add
    plz solved my prob...

  12. #12
    Registered User
    Join Date
    09-05-2013
    Location
    Hong Kong S.A.R.
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    7

    Re: Rounding up to a price

    deleted....
    Last edited by mankshongkong; 09-05-2013 at 04:29 AM. Reason: duplicated

  13. #13
    Registered User
    Join Date
    09-05-2013
    Location
    Hong Kong S.A.R.
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    7

    Re: Rounding up to a price

    Quote Originally Posted by Roger Govier View Post
    Sorry



    That doesn't work in all conditions, try this instead

    =IF(--RIGHT(A1*100)<=4,(ROUNDDOWN(A1*100,-1)+4)/100,(ROUNDDOWN(A1*100,-1)+9)/100)
    Hi Roger,

    How should your formula be changed if I were to round up to five dollars and 10 dollars?

    i.e. Anything with a calculated price that ends with $x00.01 to $x05.00 should return a value of $x05.00; and $x05.01 to $x10.00 a value of $x10.00

    Thanks in advance for you assistance!
    Last edited by mankshongkong; 09-05-2013 at 03:45 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 01-03-2013, 12:32 AM
  2. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  3. retail price averaging and rounding
    By paperlion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2006, 11:05 AM
  4. Retail Price rounding help needed
    By Graham Clarke in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2006, 02:45 PM
  5. [SOLVED] Rounding to price points
    By Chris Wetz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2005, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1