+ Reply to Thread
Results 1 to 3 of 3

How to find the a value closest to a given value

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to find the a value closest to a given value

    Hi Sir,

    I have a question about how to find a value which is the closest to a give value. For example,

    if the given value is 0.1, and the list of available values are: 0.0, 0.3, 0.5, then the closest value is 0.0 (NOT 0.3).

    In another case,

    if the given value is 2, and the list of available values are 0, 3, 4, then the closest value is 3.

    Not sure which look up function to use.

    Thanks in advance

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

    Re: How to find the a value closest to a given value

    Here, try this

    comfirmed with ctrl+shift+enter (not just enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assuming C2 is criteria and C3:C5 is data
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find the a value closest to a given value

    Quote Originally Posted by zbor View Post
    Here, try this

    comfirmed with ctrl+shift+enter (not just enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assuming C2 is criteria and C3:C5 is data


    Thanks, zbor. It worked perfectly

+ 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