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-
 

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
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?
 

cherria

Well-known Member
Joined
Nov 17, 2004
Messages
708
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)
 

CCD

New Member
Joined
Feb 16, 2005
Messages
3
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.
 

cherria

Well-known Member
Joined
Nov 17, 2004
Messages
708
=VLOOKUP("watts",OFFSET([Workbook2]Sheet1!$A$1,0,0,COUNTA([Workbook2]Sheet1!A:A),4),2,FALSE)

should do the trick!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,611
Members
414,080
Latest member
penguin23

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
Top