+ Reply to Thread
Results 1 to 10 of 10

Lookup nearest value

Hybrid View

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Lookup nearest value

    Thanks D.O - I wonder if it is possible without using an array formula though?

    If I want to use more than one (which I do) they can be quite hefty and slow the file down.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup nearest value

    zbor, that wouldn't work if D4 were say 4.1

    KevinThomas, it will depend in part on how many variants of this calculation you're performing... the simplest non-array approach would be to store the ABS vaiance of A1:A26 to D4 in C1:C26 and then use a standard INDEX/MATCH as outlined by zbor

    =INDEX(B1:B26,MATCH(MIN(C1:C26),C1:C26,0))

    You can do this in non-array form without helpers

    =INDEX(B1:B26,MATCH(MIN(INDEX(ABS(A1:A26-D4),0)),INDEX(ABS(A1:A26-D4),0),0)

    but this is not efficient.

+ 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