Vlookup - what I am doing wrong?

Lee733

New Member
Joined
Jan 22, 2018
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Cell C13 has the formula =Vlookup(B13,F5:AQ12,1) - correct result of 8 is returned,
Cell C14 has the forumla =Vlookup(B14,F5:AQ12,1) - incorrect result of 8 is returned. It should be 7. Why is this not working?


1650651380069.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
That formula is matching column B to column L. Your original VLOOKUP was trying to match column B to column F.
You cannot use VLOOKUP to do that, as with a VLOOKUP, the column you are matching on HAS to be the first column (left-most) in your lookup range (in the second argument).
You cannot return columns to the left of the column you are matching on.

However, if you have a newer version of Excel (Excel 365 or 2021), you can use XLOOKUP, i.e.
Excel Formula:
=XLOOKUP(B14,L5:L12,F5:F12,0)
 
Upvote 0
Solution
You are welcome.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top