Dynamic VLOOKUP

whitey1987

New Member
Joined
Jun 11, 2011
Messages
7
Hello everyone,

Hoping one of you can help me out.

I have a VLOOKUP in my worksheet, but the range that I'm looking up needs to be dynamic.

In other words the amount of rows may change, for example the range I'm looking up one month may be A1:Z10 but next month it could be A1:Z20. Is there a way I can account for this, without having to change the formula every time I run it?

Many thanks in advance.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the board...

The easiest way is to use a range that is moderately larger than you ever expect the data to be...

If you're pretty sure it will never be more than 1000 rows, then use
A1:Z1500 or similar...


Again, that's easiest...not necessarily most ideal..


Look into dynamic named ranges, this would probably be best..


Hope that helps.
 
Upvote 0
Thanks for the responses guys, really appreciate it.

If for example I want to return values that are in one column, can I just say 'Z' rather than Z1:Z100 for example?
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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