Excel 中的 VLOOKUP 函数
了解如何在 Excel 中使用 VLOOKUP 函数,理解其语法、常见用法,以及如何让 ExcelGPT 按你的真实工作簿结构生成或调整公式。
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])lookup_value必填用于 VLOOKUP 的参数 lookup_value。说明(原文):The value to search for in the first column of the table.
table_array必填用于 VLOOKUP 的参数 table_array。说明(原文):The table or range that contains both lookup and return values.
col_index_num必填用于 VLOOKUP 的参数 col_index_num。说明(原文):The column number within the table to return.
range_lookup可选用于 VLOOKUP 的参数 range_lookup。说明(原文):Optional TRUE or FALSE for approximate or exact match behavior.
示例
=VLOOKUP(A2, $H$2:$K$100, 3, FALSE)展示 VLOOKUP 的常见用法。说明(原文):Searches for the product ID in the first column of the table and returns the third column value.
=VLOOKUP(B2, $M$2:$N$8, 2, TRUE)展示 VLOOKUP 的常见用法。说明(原文):Uses approximate matching to map a sales value to the correct commission percentage.
常见错误
确认 VLOOKUP 的参数顺序、数据类型和引用方向是否正确。
检查引用范围、空值、错误值或数组溢出是否会影响结果。
先在小范围样例上验证,再扩展到完整工作簿。