+ Reply to Thread
Results 1 to 5 of 5

Find Approximate Match

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    3

    Find Approximate Match

    Dear all,

    I have been trying to use vlookup to fin an approximate value and return the value in another column and keep getting NA error.

    I have a range A1:A20 with numbers ranging from 0 to 1 and a range B1:B20 with sales. What I want to do is having in another part of the spreadsheet a list of values to lookup for example 0.2, 0.4, 0.6 and use the formula to look it up en A1:A20 and return the values en B1:b20 with an approximate match.

    I have read it can be done combining Index and Match functions but I don't know how.

    Thanks.
    Last edited by nvallev; 07-06-2011 at 07:35 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Find Approximate Match

    Hi and welcome to the forum.

    If A1:A20 is sorted ascending then you can use VLOOKUP (or INDEX and MATCH) by passing TRUE into the 4th, "Range_Lookup" parameter. When doing this, it will look for the largest value in A1:A20 which is less than or equal to the look up value. See attached example.
    Attached Files Attached Files
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    07-05-2011
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find Approximate Match

    Thank you for your answer.

    Is there any way I can do it without having to sort the ranges?

    The ranges will regularly be updated with data from other sheets in the workbook so I would like to do it without having to sort every time the data changes in the ranges

    Thanks.

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

    Re: Find Approximate Match

    You just need to sort reference table. Values that will be updated don't need to be sorted.
    Never use Merged Cells in Excel

  5. #5
    Registered User
    Join Date
    07-05-2011
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find Approximate Match

    Ok. Thank you very much!

+ 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