Vlookuo

jilljhop

New Member
Joined
Jan 28, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Hi sorry for the question but I have been unable to find a clear answer.....


Is it ok to use a partial selection of a spreadsheet for a vlookup for example the spreadsheet is 20 columns long the data your matching against is column 5 and the info you want to pull is column 11 is it ok to select column 5 to 11 and put the argument in your looking at column 7 or should you always select the whole table?

Also I have read this I put a 0 instead of false but they are the same what is the best practice or does it really not matter?

Thank you
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Yes you can use a partial selection. You can use 0 for FALSE or 1 for TRUE. You may want to look at the XLOOKUP function since you have Excel 2021 which is more versatile than VLOOKUP.
 
Upvote 0
Hi that's great thank you I have looked at xlookup in the past but have not really used it but I will have another look.

Is it best practice to use the whole table..
If you have the look up info on column 5 would that always need to be moved to column A? As it's the most left?

I also copy and paste the data once it's moved over so it doesn't change if the original table does is this also ok?

I just want to ensure I'm using it in the best way possible.

Thank you
 
Upvote 0
With VLOOKUP your lookup value has to be to the left most column in your table array, but doesn't need to be in column A. I don't know of any reason to use the whole table if the other columns aren't needed.
You may want to copy and use paste as value to make sure your data doesn't change.
Maybe this link will help.

 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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