# Dynamically Sized VLOOKUP Table Array

1. ## Dynamically Sized VLOOKUP Table Array

Hi all. Thanks for the help in advance.
I've struggled with this one for a while. I'm basically parsing out a registry key and putting all the information on a single row. But the number of items under a header is variable and where the specific one i'm looking for is in a variable position. So what I've been doing is doing a VLOOKUP for that value. What I'm looking for help with is to make the table array variable in size based on a cell with the number of rows for that item.
For example the lookup is two columns (C & D), and we'll say we're on row 100. The row size cell says 5 so I need the table_array to be C100:D104 (specifically =VLOOKUP("Item",C100:D104,2,FALSE). Basically, I only want to look so far down; I need the final cell (D104 in this case) to be dependent on another cell.

Again, thanks!

2. ## Re: Dynamically Sized VLOOKUP Table Array

This probably won't be exactly what you need but should get you on the right lines:

=INDEX(D100:D200,MATCH("Item",C100:INDEX(C100:C200,5),0))

Ranges D100:D200 and C100:C200 can be adjusted as appropriate but need to be the same size. The 5 near the end will relate to row 104 (the 5th cell when starting at 100), but can be linked to a cell reference if that it easier. Or you can use another MATCH function to define it if that is desired.

If you want a more tailored solution, please provide a sample workbook - instructions are at the top of the page in the yellow banner.

3. ## Re: Dynamically Sized VLOOKUP Table Array

Then you need something like:

``Please Login or Register  to view this content.``
Replace the 5 with the cell reference that contains the row size.

WBD

4. ## Re: Dynamically Sized VLOOKUP Table Array

Worked perfectly! Thank you so much!!

5. ## Re: Dynamically Sized VLOOKUP Table Array

SamMoore welcome to the forum.

If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

6. ## Re: Dynamically Sized VLOOKUP Table Array

SOLVED

Thanks

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1