+ Reply to Thread
Results 1 to 4 of 4

Excel not calculating correctly

Hybrid View

atakpajr Excel not calculating... 11-08-2011, 03:02 PM
MrShorty Re: Excel not calculating... 11-08-2011, 03:13 PM
alansidman Re: Excel not calculating... 11-08-2011, 03:16 PM
ChemistB Re: Excel not calculating... 11-08-2011, 03:32 PM
  1. #1
    Registered User
    Join Date
    11-03-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Excel not calculating correctly

    I'm working on a worksheet to determine the amount an employee is to be paid. In one cell I have the amount (N9=29.82) the other the amount of hours (O9=64). In P9 I have the total which is (O9*N9). The problem is that excel returns a total of 1908.76. The actual total is 1908.48.

    This is a problem because the math error recurs in all cells with multiplication and I'm trying to link several worksheets for invoicing and will overpay by @ $30 each pay period if I dont go in and manually input the numbers. What can be causing this?

    Note. the cells are formated to two digets decimls only.

    The Rounding fixed everything, thanks!
    Last edited by atakpajr; 11-08-2011 at 03:33 PM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,432

    Re: Excel not calculating correctly

    Note. the cells are formated to two digets decimls only.
    Which begs the question -- what is the actual value in N9? Is it 29.82000000000000000? Or is it something between 29.815 and 29.825? 1908.76/64 would suggest a value in N9 of ~29.8244.

    If you want N9 to exactly equal 29.82, you are going to probably have to use the ROUND function (or similar strategy) to force N9 to be exactly 29.82.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Excel not calculating correctly

    Are the input cells N9 and O9 harcoded or are they imported? If imported, are they really the numbers you indicated or are they larger with more decimals but only displayed as shown?

    Edit: MrShorty has beaten me to the punch on the direction I was headed.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel not calculating correctly

    While Round is the preferred method, you could also use the Excel Option > Calculate Precision as Displayed.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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