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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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