Referencing an array using a formula?

jayk1324

New Member
Joined
Aug 31, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,
I need help having a VLOOKUP formula refer to an array dynamically, that is to say it looks through the array starting at different points based on a row number that I have updating from other data inputs.

=VLOOKUP(LEFT($B$19,15)&"*",'FILENAME'!$B$2:$H$548938,1,FALSE)

I need the underlined area to be based off another cell, so for example I can update the other cell to say B52, and I need the B2 to update to B52. Is this even possible? If yes, how can I get this to work?

I tried using INDIRECT to point to a cell that I would update but I get an incorrect formula error when trying to enter it.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi & welcome to MrExcel.
How about
Excel Formula:
=VLOOKUP(LEFT($B$19,15)&"*",INDEX(FILENAME!$B:$B,$A$2):FILENAME!$B$548938,1,FALSE)
where A2 has a number in it.
 
Upvote 0
I think this may have worked, can you give me an explanation on how this formula works?
 
Upvote 0
The value in A2 gives the index a row number forming an address, so you get B52 & that is the start of the range the formula will lookat.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,293
Members
448,564
Latest member
ED38

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