+ Reply to Thread
Results 1 to 3 of 3

Issues with FLOOR.MATH

  1. #1
    Registered User
    Join Date
    04-24-2017
    Location
    Bay Area
    MS-Off Ver
    7
    Posts
    2

    Issues with FLOOR.MATH

    Hi Everyone,

    I can't figure out why my formula =FLOOR.MATH(I14, ".25") is resulting in 1.75 when the number it is looking at is 2.0.

    Some more information in case it helps. I have two columns with time in them and I am trying to calculate/round the time difference down to the nearest quarter. Once I have the difference I then used the formula above. What is odd is that the formula results in 2.0 when it looked at the calculated number of 15:00-17:00 but then doesn't when I used the same formula on 14:00-16:00. Any ideas? or any suggestions on another formula?

    Thanks in advance!

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

    Re: Issues with FLOOR.MATH

    Difficult to say without seeing the actual numbers, but I would guess that it is routine double precision round off error. If you format your differences (before flooring them) so that you can see all 15 digits, I expect you will find that some of those that are 2.0 to the nearest tenth are 1.9999999..... (something ever so slightly smaller than 2), which naturally floors to 1.75.

    My first suggestion for fixing this is to include a ROUND() function on the intermediate difference before you FLOOR() it. You may need to research to know what precision you need for this intermediate round, but I would expect something like ROUND(difference,7) would be a good first guess. The FLOOR() the rounded result.
    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
    04-24-2017
    Location
    Bay Area
    MS-Off Ver
    7
    Posts
    2

    Re: Issues with FLOOR.MATH

    Thanks for the quick reply, your suggestion of including ROUND() on the intermediate difference did the trick. Thanks so much!

+ 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. Shop Floor Control spreadsheet Vlookup Issues
    By bossman137 in forum Excel General
    Replies: 4
    Last Post: 10-15-2015, 07:27 PM
  2. How to This Command: Math.Floor
    By Sympathetic in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-01-2015, 02:05 PM
  3. [SOLVED] Floor Plan
    By namluke in forum Excel General
    Replies: 3
    Last Post: 07-03-2014, 01:28 PM
  4. Having some formula issues. Need some math whizzes.
    By joehogan76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2006, 06:16 PM
  5. [SOLVED] floor and rounding
    By srroduin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2006, 04:15 PM
  6. Replies: 3
    Last Post: 02-16-2006, 07:00 AM
  7. [SOLVED] ceiling & floor
    By Bill Ridgeway in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-07-2005, 10:05 AM

Tags for this Thread

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