Dynaimc VLOOKUP

Nagarajanbala

New Member
Joined
May 17, 2013
Messages
5
I have a vlookup formula like this VLOOKUP(RC[-1],Report!R3C2:R934C4,3,FALSE). I want to make is dynamic. I don't have a choice but to give a cell reference for the starting point (in this case r3c2). However I want to make the array end reference R934C4 to be dynamic. I have the variable Lastrow, which will give me the last row number till which i have data.

Now, How will I send the dynamic array value to the vlookup function? (in this case for R934c4)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I think what you are looking for is how to make your Range(array) reference dynamic. meaning you want your range to expand or contract with its data. Am I correct?
 
Upvote 0
I think what you are looking for is how to make your Range(array) reference dynamic. meaning you want your range to expand or contract with its data. Am I correct?


Can I put the range reference inside the vlookup? I have used range type with a dynamic values.
 
Upvote 0
Yes you can. If it is just a matter of determining how many rows in a column this can be achieved by using a NAMED RANGE utilizing the OFFSET Function. example: Lets say Column "A" has a constantly changing populated number of rows. today the range is A1:A15 tomorrow it is A1:A500. You could reference all of Column A in it's entirety ("A:A") or you can use this formula in a NAMED RANGE to determine the size for you. FORMULA: =OFFSET(SHEET1!$A$1,0,0,COUNTA(SHEET1!$A:$A),1) . If you use the named range and give a name of "DNR_A" then in your formula you would reference "DNR_A" as the Range(array). Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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