+ Reply to Thread
Results 1 to 3 of 3

Lookup closest value

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Lookup closest value

    Hi All, I have a table as below

    0.75 0
    1 3
    1.25 4
    1.5 5
    1.75 7
    2 8
    2.24 9
    2.5 11
    2.75 12
    3 14
    3.25 15
    3.5 16


    I need to lookup values against the first column, and return the value in teh second. HOWEVER some of the values I want to lookup are not exact matches.

    In these instances I want the value to round down and lookup the corrosponding figure.

    So for instance, if I wanted to lookup value 2.22, it would produce the answer 8. (As it would round down to 2). If the lookup value was 2.26, it would produce 9.

    I know this is possible, I'm just getting tangled up trying to do it.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Lookup closest value

    If your table is in A1:A12 and lookup value in C1 try

    =LOOKUP(C1,A1:B12)
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Lookup closest value

    Simple but effective - thanks

+ 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