其他分享
首页 > 其他分享> > vlookup的近似匹配规则

vlookup的近似匹配规则

作者:互联网

https://support.microsoft.com/en-us/office/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1

  1. Optionally, you can specify TRUE if you want an approximate match or FALSE if you want an exact match of the return value. If you don't specify anything, the default value will always be TRUE or approximate match.

 

How To Use Vlookup Exact And Approximate Match In Excel?

Use Vlookup Function To Get The Approximate Matches In Excel

Sometimes, your specified data is not in the data range, to get the nearest match with the given data, you need to use the vlookup to get an approximate match.

If you have the following range data, the specified quantity number 58 is not in the Quantity column, how to get its closest unit price in column B?

Please enter the below formula into a blank cell:

=VLOOKUP(D2,$A$2:$B$10,2,TRUE)

Then, drag the fill handle down to the cells to apply this formula, and you will get the approximate matches based on the given values, see screenshot:

Notes:

1. In the above formula: D2 is the value which you want to return its relative information, A2:B10 is the data range you use, the number 2 indicates the column number that your matched value is returned and the TRUE refers to the approximate match.

2. The approximate match returns the next largest value that is less than your specific lookup value.

3. To use the vlookup function to get an approximate match value, your first column in the table must be sorted in ascending order, otherwise it will return a wrong result.

 

标签:匹配,get,TRUE,vlookup,近似,value,approximate,data,match
来源: https://www.cnblogs.com/chucklu/p/16269547.html