+ Reply to Thread
Results 1 to 12 of 12

Formula doesn't return same result as calculator

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    14

    Formula doesn't return same result as calculator

    I have a simple formula.

    Where formula is: =T27/U28

    T27 = 1195000
    U28 = 9.9

    The formula gives me: 120360
    A calculator gives me: 120707

    Difference of: 347

    Another example of same formula:

    Formula =W27/X28

    W27 = 64060
    X28 = 2.7

    The formula gives me: 23916
    A calculator gives me: 23725

    Difference of 191.

    As this is the column for average impressions a day, that's a whole lot of difference. What am I not understanding?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Simple division ? - help understanding dif bet formula/calculator

    See is that 9.9 actually 9.92854 but showed with one decimal.

    In another words - format it as number with several decimal places

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,469

    Re: Simple division ? - help understanding dif bet formula/calculator

    Works for me.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Simple division ? - help understanding dif bet formula/calculator

    Hi,

    I think you'll find U28 contains 9.92854769 and not 9.9. Look in the formula bar (next to the fx symbol) to see what's actually in the cell.

    Format U28 to display more than 1 decimal place and you'll see what I mean. Ditto with X28

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    09-21-2010
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Simple division ? - help understanding dif bet formula/calculator

    Figured that was it, but didn't want the long number to show on the spreadsheet. What would you do if it was your report? Leave it as is, manually calculate it and put that in?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Simple division ? - help understanding dif bet formula/calculator

    No need... Just format cell as number with 1 decimal place...
    You+ll see only one but whole number will be taken for calculation.

  7. #7
    Registered User
    Join Date
    09-21-2010
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Simple division ? - help understanding dif bet formula/calculator

    Then why isn't it calculating right in the first place? The cell U28 is the result of a formula (=U27/7) but it is formatted for one decimal place...

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Simple division ? - help understanding dif bet formula/calculator

    You made some mistake...

    If you have in some cell number formated with 1 decimal place.
    And in next you make 1*that number... you+ll get whole number...

    Please Login or Register  to view this content.
    Formatting just shows as you like.. But it takes whole number...

    For example, format cell as "ABC-"0.0 and it will still calculate it as 1,2131321321321 (instead of error that it's true text)
    Last edited by zbor; 09-21-2010 at 03:39 PM.

  9. #9
    Registered User
    Join Date
    09-21-2010
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Simple division ? - help understanding dif bet formula/calculator

    Quote Originally Posted by zbor View Post
    You made some mistake...

    If you have in some cell number formated with 1 decimal place.
    And in next you make 1*that number... you+ll get whole number...

    Please Login or Register  to view this content.
    Formatting just shows as you like.. But it takes whole number...

    For example, format cell as "ABC-"0.0 and it will still calculate it as 1,2131321321321 (instead of error that it's true text)
    I am a dunce. College degree and Marketing/IT background yet I don't understand a bit what you wrote...is there another way to explain that maybe I can grasp?

  10. #10
    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: Simple division ? - help understanding dif bet formula/calculator

    The point is, Excel displays values with whatever precision you like, but always uses the underlying complete (15-digit) value for calculation.

    The exception is if you select the option for Precision as displayed. I have never heard of a situation where it was correct to do it.
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Simple division ? - help understanding dif bet formula/calculator

    I suppose the answer to your question lies in what the readers of your report will observe and question.

    If you think they will make the same calculation as you did, either mentally or explicitly and worry about an apparent difference, then format the cell to show several decimal places so that they may understand.

    If not then leave it as it is.

    In the latter case it's then usual to add a note somewhere to tell the reader that 'some cells are only displaying one decimal place although calculations are made with the whole decimal.

    HTH

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Formula doesn't return same result as calculator

    Hi.. Check this example.. Hope it will help.

    In A column you have different numbers (click select the cell and in Formula bar you will see full value)
    But they all formated to one decimal place so they look same

    B column is that number ^2
    Therefore you get different results because there is different input (no matter that they look same).

    In column D is opposite...

    Same number differently formated will result with same output in column E.
    Attached Files Attached Files

+ 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