VLOOKUP/Nested Indirect Question

Seansy

New Member
Joined
Dec 7, 2017
Messages
6
Hi everyone!

My formula requires a VLOOKUP function that I think will involve the use of several nested indirect functions.

Let's call my current worksheet Test1.

Here's what I need:

Code:
=VLOOKUP(lookup_value, [B][COLOR=#B22222]table_array[/COLOR][/B], [COLOR=#40E0D0][B]col_index_num[/B][/COLOR], FALSE)

1. For my table_array, I need the range $A:$Z in the worksheet Sheet1 from the workbook Z:\Employee Stats.xlsm.

I want to indicate all of these elements in cells in my current worksheet.

E.g. In my current worksheet Test1:
  • Cell A1 is the name of my desired workbook: Employee Stats.xlsm (note that I've included the extension ".xlsm")
  • Cell A2 is the name of the worksheet: Sheet1
  • Cell A3 is the start of the range I need: A
  • Cell A4 is the end of the range I need: Z

2. I want to do something similar for my col_index_num, where I reference a cell (using INDIRECT?) to determine the column.

E.g. If I need Column 5, I want the col_index_num part of my VLOOKUP function to go to reference Cell A5 in my current worksheet, where I will write 5.

I'm uncomfortable with INDIRECT to begin with, so your help is greatly appreciated! :confused:

I hope this makes sense, and would be happy to provide any clarifications needed. Thank you in advance!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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