Easy (hopefully) Vlookup question

mbrs

New Member
Joined
Nov 29, 2012
Messages
1
I have a workbook with a master sheet that draws various data from a number of other sheets within the file.

Is there a way to build a VLookup formula (without writing a massive If Then Formula) that accesses the same array within different sheets based on conditions.

Say If Cell A1 is "Jun12" A vlookup in A10 would access array A1:D200 within sheet "Jun12"

If B1 is "March12" vlookup in B10 would access array A1:D200 within sheet "March12"

Etc.

Thank you for any help in advance.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi and welcome to MrExcel.

Does this work for you?....

=VLOOKUP($A2,INDIRECT(A1 & "!$A$1:$D$200"), 3, FALSE)

This looks at the Sheet name in A1 and the lookup value in A2 and returns the data from column C (3)

I hope that helps.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,673
Members
449,463
Latest member
Jojomen56

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