vlookup的近似匹配规则
https://support.microsoft.com/en-us/office/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1
-
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:
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. 可以理解为向上取。58在50和100之间,50在上面,所以取50所在行的列。
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.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2021-05-14 Appveyor: FIND: Parameter format not correct
2021-05-14 Creating an archive from a directory without the directory name being added to the archive
2020-05-14 event bus
2020-05-14 想要学习设计模式,你得先会看类图,一张图读懂UML
2020-05-14 DDD学习
2019-05-14 Where should I put <script> tags in HTML markup?
2019-05-14 Checking out pull requests locally