+ Reply to Thread
Results 1 to 17 of 17

Price increment formula

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question Price increment formula

    i need to round prices up to .29/.49/.69/.99 eg $4.49-$4.69 etc

    when a price ends in
    0-.28= .29
    30-48= .49
    50-68= .69
    70-98= .99

    If anyone can help with a formula to do this I would be very thankful

    Regards James

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Price increment formula

    Hi Jameshfish,

    Welcome to the forum.
    Do you want this rounding to happen till 98 .. or the list can be bigger than the data you shown ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    Thanks for quick response
    its for pricing so .98 is the highest.
    ie $4.98 becomes $4.99

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Price increment formula

    Try..

    =IF(A1=ROUNDUP(A1,1),A1+0.09,ROUNDUP(A1,1)-0.01)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    thanks am not a great excel maven - how do I add the price to the formula
    ie
    4.95 in column c for example what do i need to add so it will work to show $4.99
    Thanks

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Price increment formula

    You would need to use the formula in an adjacent cell. So for example if your prices are in A1, type the formula in B1 and so on.

  7. #7
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    Just tested a few and see how it worked great
    BUT
    my problem is I have 4 columns with 4 prices
    Total Ticket Price A Price B Price C Price

    each column is worked with a different multiplier (x4.5/x2.15 etc

    will try to see if the formula will work
    Thanks

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Price increment formula

    @ Ace
    Your formula isn't giving the expected results as I understand them. For instance a price of $4.30 yields $4.39 but I think OP wants $4.49

    Maybe
    with the original value in cell C2:
    =INT(C2)+LOOKUP(MOD(C2,1),{0,0.29,0.49,0.69},{0.29,0.49,0.69,0.99})

  9. #9
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    cannot quite get there but with your help am nearly there .How do i put in that the formula is
    f2=your formula * 2.5

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Price increment formula

    @ Ace
    Your formula isn't giving the expected results as I understand them. For instance a price of $4.30 yields $4.39 but I think OP wants $4.49
    Oops! thought it was increments of 0.10. Mid-week fatigue maybe! Thanks for correcting Cutter!

  11. #11
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    cutter your formula will not work on my excel it just shows 0.29 what am i doing wrong

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Price increment formula

    Sorry, I just gave you the base formula to work with.

    You'll get .29 if the source cell is 0 or blank so to test if the source cell is blank:
    =IF(C2="","",INT(C2)+LOOKUP(MOD(C2,1),{0,0.29,0.49,0.69},{0.29,0.49,0.69,0.99}))


    Mid-week fatigue maybe!
    Hate to tell you Ace, it's only Monday!

    ---------- Post added at 04:35 PM ---------- Previous post was at 04:30 PM ----------

    Just noticed post #9

    Try
    =IF(C2="","",ROUND((INT(C2)+LOOKUP(MOD(C2,1),{0,0.29,0.49,0.69},{0.29,0.49,0.69,0.99}))*2.5,2))

  13. #13
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    thanks that is great but where do i put the multiplier so it will multiply a column by 2.5/4.5 etc Thanks so much

    ps how do you get it so that the formula is in a spot but does not show 0.00 etc

    ---------- Post added at 03:47 PM ---------- Previous post was at 03:42 PM ----------

    does not seem to work for me does not round up to the 9

  14. #14
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Price increment formula

    The formula I gave you does the "rounding up to the 9" before being multiplied.

    Maybe time to show us an example file that shows clearly what you have and the results you want:

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  15. #15
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    attached I hope is the file.
    Thanks for all this help is really great and very nice
    Attached Files Attached Files

  16. #16
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Price increment formula

    If I understand this correctly, use the following

    In E4,
    =IF($D4="","",ROUND((INT($D4*4.5)+LOOKUP(MOD($D4*4.5,1),{0,0.29,0.49,0.69},{0.29,0.49,0.69,0.99})),2))
    and adjsut the highlighted multiplier accordingly for prices in Column F, G & H

    See attached (highlighted in yellow). Does this work for you?
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    08-27-2012
    Location
    NY,USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Price increment formula

    That works great thank you soo much. One question why when I put in a code it comes up with 0.00 or similar but your code the column is blank.
    You have all been great A BIG thanks to the forum for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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