+ Reply to Thread
Results 1 to 5 of 5

same value and fomula different answers

  1. #1
    Registered User
    Join Date
    03-31-2016
    Location
    Indiana
    MS-Off Ver
    2007
    Posts
    3

    same value and fomula different answers

    I have an excel sheet that is calculating a total time. All of my examples come up with 1:00, but then when that answer is used in the following cells different answers come up. the last column should be 0 but some are coming up as 18.75.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,869

    Re: same value and fomula different answers

    It looks to me like round-off error is to blame (http://www.cpearson.com/Excel/rounding.htm ). If you look at your numbers closely, you will see that some of those 1:00 values are really 0.0416666666666666 and others are 0.0416666666666667. The hour:minute display cannot show this small difference in the result, but this small difference sometimes causes the CEILING function to return 1.25 instead of 1.00 (you can see this using the Formula Evaluate tool https://support.office.com/en-us/art...6-a70aa409b8a7 ).

    You will probably need a roundiong function somewhere in your computation sequence to account for this inherent rounding error and force the 1:00 value to always be the same.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-31-2016
    Location
    Indiana
    MS-Off Ver
    2007
    Posts
    3

    Re: same value and fomula different answers

    I just tried adding a rounding function on several different cells and a combination of them but the ones that were 0 stayed 0 and the ones that were 18.75 stayed 18.75

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,869

    Re: same value and fomula different answers

    Without knowing exactly what rounding functions you tried on which cells/formulas, it is difficult to comment. My first thought might be to put column G's formula inside of a regular ROUND() function =ROUND(current formula,8) 8 digits should be more precise than any of your input data. This caused all of column I to be 18.75. I don't know if this is the correct answer or if 0 is the correct answer, but they were all at least giving the same answer. You could also use ROUNDUP() or ROUNDDOWN() or CEILING() or FLOOR() or any of the other rounding functions, depending on the exact outcome you expect.

  5. #5
    Registered User
    Join Date
    03-31-2016
    Location
    Indiana
    MS-Off Ver
    2007
    Posts
    3

    Re: same value and fomula different answers

    I was making an extra cell for the rounding and getting what I was before. But the rounding in the cell is getting me all 18.75, but 0 is the answer. This points me in the right direction though and I think I can figure it out from here. Thanks a lot for your help.

+ 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. Need a fomula for this
    By ssuman1010 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2015, 12:42 PM
  2. [SOLVED] fomula add on
    By norm01 in forum Excel General
    Replies: 3
    Last Post: 09-27-2014, 09:46 PM
  3. [SOLVED] How to sum in fomula?
    By Indra Rai in forum Excel General
    Replies: 2
    Last Post: 09-26-2014, 10:43 PM
  4. [SOLVED] Count the number of matches in a row of one word answers with a row of correct answers
    By flammer4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2012, 01:17 PM
  5. help with formula reqiured,
    By tabbitt in forum Excel General
    Replies: 1
    Last Post: 04-08-2012, 05:37 AM
  6. [SOLVED] Please help, i need a fomula
    By Age Formula?? in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2005, 06:05 PM
  7. IF Fomula
    By DWadding in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 01:05 PM

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