Announcement

Collapse
No announcement yet.

Excel Challenge - Rounding Prices

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Excel Challenge - Rounding Prices

    (Firstly no pun intended in the thread title - I didn't choose my surname )

    I have a spreadsheet to calculate selling prices from cost prices. Such as:
    Cost Price X Factor = Selling Price

    However I want to round up the selling price to the next whole number ending in 9. So I want to round up prices like:

    72.78, 55.54, 66.89, 112.40 to

    79, 59, 69 119 etc.

    There is an exception though I only want to do this if the number is within 7 of the rounded up number otherwise it needs to be rather rounded down to the nearest 9.

    For example a price of say 119.89 should be 119 and a price of 121.25 should be 119 yet 122.55 would be 129.

    I'm trying to devise an Excel cell formula to do this - any Excel wiz out there willing to give it a go?

    #2
    Give the following a try:

    Code:
    =(ROUNDUP((A1-2)/10,0)-0.1)*10
    This will need a little tweaking if you have prices less than £2.00
    Darren Guppy
    Golf Tee Warehouse
    Golf Tees and Golf Accessories.

    Comment


      #3
      Brilliant - thanks Darren.
      Looks so simple now.

      Comment


        #4
        If you need to deal with prices under £2.01 this following code should work:

        Code:
        =(ROUNDUP((IF(A1>2,A1,2.01)-2)/10,0)-0.1)*10

        I was surprised how short the formula turned out to be, as initially I was generating a very long complicated formula until I tried dividing by 10.
        Darren Guppy
        Golf Tee Warehouse
        Golf Tees and Golf Accessories.

        Comment

        Working...
        X