As shown in the figure, let the name of the E column query be equal to the value of the B column, you can use the function in Excel
As shown in the following figure in the function expression:
Place the mouse here and drag it down to see the picture:
After dragging, the effect is as follows: