+ Reply to Thread
Results 1 to 6 of 6

prices not rounded to 2 decimal points

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    prices not rounded to 2 decimal points

    I have the attached workup which is used to help prepare estimates for customers.

    It works well, however i have found that the prices are not always accurate.

    I beleive it is because the formulas are not rounding the figures to the nearest 2 decimal points. so some costs are 1 or 2 pence out. OK on a small qty not so good on a large qty.

    I dont know how to do this as the roundup function only rounds up i need it to round to the neareast 2 decimal points.
    Also dont know how to integrate it into existing formulas and macros
    Last edited by philiasfogg; 03-12-2009 at 05:35 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: prices not rounded to 2 decimal points

    Take all the current formulas that compute an item cost or price, and wrap them like this:

    =ROUND(formula, 2)

    E.g., = ROUND(A1*B1, 2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: prices not rounded to 2 decimal points

    Thanks

    I tried that and it seems to work but I get the following error

    #VALUE!

    Is there a way I can do this without getting the error

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: prices not rounded to 2 decimal points

    I dunno. What's the formula?

  5. #5
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: prices not rounded to 2 decimal points

    the spreadsheet is above and it is on the workings tab

    but an example formula is

    HTML Code: 

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: prices not rounded to 2 decimal points

    You shouldn't need it in that formula, because the prices in the price list should already be rounded to two digits.

    But the reason you get a value error is that you can't round a null string. So if you were going to round, you have to do it on the part that returns a numeric value, e.g.,


    =IF($C17="", "", ROUND(VLOOKUP($C17,'price list'!$B:$F,COLUMNS($A$1:C$1), FALSE), 2) )

+ 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