+ Reply to Thread
Results 1 to 10 of 10

Lookup nearest value

Hybrid View

  1. #1
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Lookup nearest value

    Why not? Work for me....

    It will find lowest value and +1 will bring propper result

    Edit: you are right.. but this might work:

    =IF(ISNA(MATCH(D4;$A$1:$A$26;0));INDEX($B$1:$B$26;MATCH(D4;$A$1:$A$26;1)+1);VLOOKUP(D4;$A$1:$B$26;2;TRUE))
    Last edited by zbor; 06-09-2009 at 04:28 AM.
    Never use Merged Cells in Excel

  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

    No that would not work either. The key is that you must calculate the actual variance of the values to the criteria and match the smallest variance.

  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Lookup nearest value

    =LEFT(IF(ISERROR(INDEX(B1:B26,MATCH(D4+MIN(ABS(A1:A26-D4)),A1:A26,0),1)),"",INDEX(B1:B26,MATCH(D4+MIN(ABS(A1:A26-D4)),A1:A26,0),1))&IF(ISERROR(INDEX(B1:B26,MATCH(D4-MIN(ABS(A1:A26-D4)),A1:A26,0),1)),"",INDEX(B1:B26,MATCH(D4-MIN(ABS(A1:A26-D4)),A1:A26,0),1)),1)
    Confirmed with CSE works!

    I'm sure somebody will optimise the formula ;-)
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  4. #4
    Registered User
    Join Date
    03-30-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Due date reminder

    Sir, i have auto finance company and have more than 750 customers. i want creat due date reminder register.

    Installment due in particular day those customers.

    Please help me.

    With regard

+ 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