Activate worksheet and vlookup command

hardroader

New Member
Joined
Aug 1, 2013
Messages
37
I am attempting to create a comparison type worksheet using the vlookup command.

Vlookup(lookup-value, table-array, col-index, range-lookup) looks like this:
vlookup(a11,G351:ay412,5,false)

For example:
A B C
9 Enter ticker symbol ABT_SAVE ADP_SAVE
10
11 Sector Health Care Technology
12 Industry Med Equip Software

Cell B9 and C9 contains the name of the worksheet where the information resides.

How can I tell the vlookup command to look at ABT_SAVE(vlookup,a11,G351:ay412,5,false)?

Thank you for your assistance.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi,

I think you might be looking for something like this:

=VLOOKUP(A11,INDIRECT(B9 &"!G351:AY412"),2,FALSE)

The INDIRECT() function will look in B9 and add that string to the start of the range address for you.
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

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