Dynamic Range Lookup

Chris86t

Board Regular
Joined
Feb 27, 2013
Messages
83
I have a tab with multiple weeks of data. I have created a vlookup to lookup the previous weeks data and bring back a certain field.

Currently I'm having to manually change the range each week which is a pain and prone to error. Is there a way that I can make the range more dynamic.

In column A of my data I have the week the data is relating to so is there a way to use that in order to automate the lookup range. I thought of creating a range called previous_week and using that however i'm unsure how to make the range dynamic

=IFERROR(IF($F76250="F",$X76250,VLOOKUP($D76250,$D$71407:$X$73828,21,0)),$X76250)

Any help would be greatly appreciated
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How does the range change???? Is there addition in range or deletion in ranges.
Post a sample of ranges

Also is there any specific criteria for selection of ranges.
 
Upvote 0
The range will likely change either increasing or decreasing in size week on week.

the criteria is based on a weekly date in column A. Every Monday I paste new data into column B and add the week commencing date.

thanks
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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