VLOOKUP lookup_array disaster!

6two6rob

New Member
Joined
Nov 5, 2015
Messages
7
I've been using VLOOKUP to show records from one sheet on another based on First Name and Last Name.

So far I've learned that VLOOKUP's lookup_value can use more than one cell by separating cell values with &" "&. So essentially I can put A2&" "&B2 to use VLOOKUP according to a person's first and last name.

As I drag the formula down to copy it using the box that highlights the cell, it changes the VLOOKUP lookup_value according to what row I'm on. So A2&" "&B2 becomes A3&" "&B3, A4&" "&B4 and so on...

Now here's the problem:

When I drag the box down with the formula inside of it to copy it down the rest of the table, the formula changes the number under lookup_array as well, which I don't want it to do. I ALWAYS want the lookup_array to stay the same, have the whole sheet selected.

How can this be done?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You just need to lock the cells in your lookup array. To do this just put a $ in front of the column and row reference.
Say your lookup array is in the range D2 to G40. To lock it just use $D$2:$G$40.
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,714
Members
449,118
Latest member
MichealRed

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