+ Reply to Thread
Results 1 to 9 of 9

Basic Formula showing incorrect result

  1. #1
    Registered User
    Join Date
    12-01-2014
    Location
    england
    MS-Off Ver
    microsoft excel 2007
    Posts
    5

    Basic Formula showing incorrect result

    Hi, This is a very basic formula i believe but it is giving me incorrect results, i have tried all the things i can think of including the format /decimals of the values ut i have no idea why its giving me incorrect figures.
    I could have the whole formulas wrong as im not very goof with excel, any help would be appriciated.

    I have attached the sheet- thanks in advance.Comp.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Basic Formula showing incorrect result

    Hi, welcome to the forum

    What exactly do you think is wrong, and what do you think it should be?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Basic Formula showing incorrect result

    what is wrong with
    the the result?
    "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

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,743

    Re: Basic Formula showing incorrect result

    not sure what you are trying to do ?
    can you provide details
    the formula is F9/30.416
    and you have the number 40 in F9

    so 40/30.416 is all I can see ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    12-01-2014
    Location
    england
    MS-Off Ver
    microsoft excel 2007
    Posts
    5

    Re: Basic Formula showing incorrect result

    hi, thankyou,

    Well the sheet is supposed to calculate the number of days between two dates, and calculate the daily charge from the monlthy charge, then multiply the two together, its the total credit amount calculated that s wrong- its always our by a few pence. its currently saying that 1.32 x 41 = 53.92, when the correct answer is 54.12 ? starnge?

    Thanks

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Basic Formula showing incorrect result

    The value in F10 is £1.315097317201, not £1.32.
    If posting code please use code tags, see here.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Basic Formula showing incorrect result

    Actually, 1.32*41 is 54.12 not 53.92

    However, the contents of F10 is 1.31509731720147 not 1.32, the caculation in your workbook is correct

  8. #8
    Registered User
    Join Date
    12-01-2014
    Location
    england
    MS-Off Ver
    microsoft excel 2007
    Posts
    5

    Re: Basic Formula showing incorrect result

    oh ok, so i just increase the decimal points displayed and itll show the accurate figues its calculating,?

    I did say it was a basic one :D

    Thankyou
    Last edited by jane1613; 12-01-2014 at 06:36 PM.

  9. #9
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Basic Formula showing incorrect result

    Quote Originally Posted by jane1613 View Post
    Well the sheet is supposed to calculate the number of days between two dates, and calculate the daily charge from the monlthy charge, then multiply the two together, its the total credit amount calculated that s wrong- its always our by a few pence. its currently saying that 1.32 x 41 = 53.92, when the correct answer is 54.12 ? starnge?
    First, the formula in F10 should be =F9/(365/12) or more simply =F9*12/365, not =F9/30.416. 30.416 is a poor estimate of 365/12.

    Second, that is not exactly 1.32. Instead, with my correction, it is about 1.31506849315068.

    You could round the value in F10 so it matches what is displayed, to wit: =ROUND(F9*12/365,2).

    However, in this case, I suspect it is more correct not to round. That depends on company policy.

    Finally, in any case, you should round the value in E19, since it is probably a final value to be paid or charged. The formula should be =ROUND(F10*C19,2).

    [EDIT] But again, that depends on company policy if the calculated amount is simply posted to an account.

    It is a "good practice" to explicitly round formulas with non-integers, even if you rounded F10, when you expect the result to be accurate to a specific number of decimal places.

    The reason is complicated to explain. In summary, it is because Excel stores numbers in binary, not decimal. So most non-integers cannot be represented exactly. That causes infinitesimal differences from expectation in arithmetic results.
    Last edited by joeu2004; 12-01-2014 at 06:56 PM.

+ 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. [SOLVED] Incorrect result from formula
    By Marvo in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 10-18-2013, 04:34 AM
  2. isblank & vlookup formula returns #n/a result and incorrect result
    By helpmeplease333 in forum Excel General
    Replies: 5
    Last Post: 05-06-2012, 11:41 PM
  3. Median result used in formula gives incorrect result
    By vlatham in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-21-2005, 12:05 PM
  4. Formula result incorrect
    By Andrew Chalk in forum Excel General
    Replies: 6
    Last Post: 06-09-2005, 12:05 AM
  5. [SOLVED] Formula result incorrect
    By Andrew Chalk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2005, 12:05 AM

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