The VLOOKUP function in Excel or WBS cannot find the reason for the target value (note: the matching data is not in the first column of the selected area)

1. Overview of requirements

Match the value of column G according to the value of column C, and return the value of column E that meets the condition
Insert picture description here

Second, the problem is reproduced and solved

2.1 Reproduce the problem

Set the function in cell I2 as follows:
=VLOOKUP(C2,E:G,1,FALSE)
did not get the target value
Insert picture description here
Insert picture description here

2.2 Problem solving

After analysis, the following reasons are found: the
data in column G as the target matching value must be in the first column of the selected area (E:G), otherwise the function VLOOKUP cannot return the value normally.
The adjustment is as follows:
adjust the position of the column.
Insert picture description here
Set the function in the I2 cell as follows:
=VLOOKUP(C2,E:G,2,FALSE) The
Insert picture description here
return value is as follows
Insert picture description here

Guess you like

Origin blog.csdn.net/wanglei880526/article/details/108862801