VLookup

CCD

New Member
Joined
Feb 16, 2005
Messages
3
How do you set up your formula to account for additional records automatically?

For example, my current formula might read: =VLOOKUP(A16,A1:D8,2,FALSE)
But now I want to add a record to the search area...

What must I do to this formula to take additional records into account automatically?

Thanks-
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
CCD said:
How do you set up your formula to account for additional records automatically?

For example, my current formula might read: =VLOOKUP(A16,A1:D8,2,FALSE)
But now I want to add a record to the search area...

What must I do to this formula to take additional records into account automatically?

Thanks-

Care to elaborate? Are you wanting to add to your lookup table?
 
Upvote 0
Assuming your lookup table was not going to expand below row 14 as yuo have data in A16 then the following would allow your lookup table to expand down to A14 and automatically update

=VLOOKUP(A16,OFFSET($A$1,0,0,COUNTA($A$1:$A$14),4),2,FALSE)
 
Upvote 0
OK - I goofed. First, yes I want to expand my lookup table. Second, let me change the scenario...I have Workbook1 open and my lookup table is in Workbook2. My new formula would read like this:

=VLOOKUP("watts",[Workbook2]Sheet1!$A$1:$D$12,2,FALSE)

Would I expand the formula in the same manner as cherria has advised? Again, I would like to be able to add records to my lookup table and have the formula written so it would automatically pick that up.

Thanks again for all your help.
 
Upvote 0
=VLOOKUP("watts",OFFSET([Workbook2]Sheet1!$A$1,0,0,COUNTA([Workbook2]Sheet1!A:A),4),2,FALSE)

should do the trick!
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,669
Members
449,178
Latest member
Emilou

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