+ Reply to Thread
Results 1 to 3 of 3

Finding the closest value

  1. #1
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Finding the closest value

    Let's say we have the following numbers in cells A1, B1, C1...:
    3 5 12 16 22

    In F1, the given value is 10.

    In G1, I need a formula which will pick the closest match to the given number 10 (in this case it would be 12).

    Thanks!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finding the closest value

    =INDEX(A1:E1, MATCH(MIN(ABS(A1:E1-F1)), ABS(A1:E1-F1), 0))

    The formula MUST be confirmed with Ctrl+Shift+Enter.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Finding the closest value

    Thanx!! It works.

+ 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