+ Reply to Thread
Results 1 to 4 of 4

Rounddown formula discrepancy

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    312

    Rounddown formula discrepancy

    I'm trying to rounddown the figures in Col A, to the values in I2:R2

    i.e. 2.72 = 2, 4.6 = 4

    But I'm wondering why values such as 5.1 are being rounded up to 6 (when they should be rounded down to 4)

    Ty
    Mdn
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,992

    Re: Rounddown formula discrepancy

    wrt A4:
    ROUNDDOWN(5.1,0) ---> 5
    MATCH(5,$I$2:$R$2,-1*) ---> 6
    *If match_type is -1, MATCH finds the smallest value that is greater than or equal to lookup_value (5 in this case). Lookup_array must be placed in descending order; no 5 therefore 6 is returned
    Last edited by protonLeah; 08-24-2018 at 02:39 PM.
    Ben Van Johnson

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

    Re: Rounddown formula discrepancy

    Looks like an extension of this previous topic: https://www.excelforum.com/excel-for...wo-values.html

    I think you need to spend a little more time understanding the -1 approximate match option for the MATCH() function that you are using. Using the 5.1 value as an example (follow along with the evaluate formula tool, if you want https://support.office.com/en-us/art...6-a70aa409b8a7 ):
    1) 5.1 rounded down to the nearest integer is 5
    2) 5 is between 6 and 4 in the descendingly sorted list. With the match type set to -1, Excel will see that 5 is between 6 and 4 and return the position of the number 6 (6th entry).
    3) The INDEX() function then returns the 6th value in the list, which is 6.

    For a round down type scenario like this, I would expect to have the list sorted in ascending order (like yesterday's list was) and use +1 as the match type argument. If I sort the lookup range in ascending order and switch the match type argument to 1, I get the values indicated in column C.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    312

    Re: Rounddown formula discrepancy

    Quote Originally Posted by MrShorty View Post
    Looks like an extension of this previous topic: https://www.excelforum.com/excel-for...wo-values.html
    Yea it is yes & they'll probably be more extensions in the coming days - all parts of a seemingly never-ending excel project!

+ 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. Replies: 6
    Last Post: 01-17-2016, 09:44 AM
  2. Formula discrepancy
    By kevinmcilroy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2014, 06:44 AM
  3. how to solve the formula with discrepancy?
    By gerard_gonzales33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2012, 08:49 PM
  4. If and rounddown formula
    By Excel-Access in forum Excel General
    Replies: 2
    Last Post: 07-03-2012, 08:00 AM
  5. [SOLVED] ROUNDDOWN function in IF formula.. ?
    By jamieblue in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-02-2012, 09:24 AM
  6. Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] What formula I should use: =ROUNDDOWN(H45*0.18;2) or =TRUNK(H45*0.18,2) ??
    By TANDEX in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02: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