+ Reply to Thread
Results 1 to 2 of 2

Finding Closest Match

  1. #1
    Registered User
    Join Date
    04-15-2004
    Posts
    18

    Finding Closest Match

    Hi,

    I know there are methods to find the closest match to a number that is either greater than or smaller than a reference number but how do you find the closest number regardless of whether its larger or smaller.

    Any help would be very welcome.

    Regards
    Andy.

  2. #2
    Herbert Seidenberg
    Guest

    Re: Finding Closest Match

    Assuming there are no duplicates in your list,
    enter as an array formula
    =SUMPRODUCT(((ABS(list-target))=MIN(ABS(list-target)))*list)
    otherwise use this array formula for the first closest match
    =INDEX(list,MATCH(MIN(ABS(list-target)),(ABS(list-target)),0))


+ 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