Pull data from multiple sheets based off name and month selected

Amo840812

New Member
Joined
Sep 5, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a workbook where I want to select an employee's name and a month to pull data matching those 2 criteria. Then I have metrics I want it to pull from the sheet that matches the employee's name and pull the data matching the month and metrics name.

Here is the sheet (named 1x1s) where I want to select the name and month and have the data generate:
1732036032083.png


In the same workbook are sheets named the employee's name (one sheet per employee) and it lists their metrics for each month:
1732035868581.png

1732035950581.png


So, for instance, in this example I would want cell D5 on the sheet named 1x1s to pull the metric for Metric1 from the sheet Employee 1 under column matching Jan. Is this possible? I know I could do a super messy if and formula for each employee for each month but there has got to be an easier way (I was thinking indirect or vlookup but not sure).
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Given this employee sheet:

Book1
ABCD
1
2EE NAMEGoalJanFeb
3Metric11%
4Metric22%
5Metric33%
6Metric44%
7Metric55%
8Metric651%6%
9Metric77%
10Metric88%
11Metric99%
12Metric1010%
13Metric1111%
14Metric1212%
15Metric1313%
16Metric1414%
17Metric158%15%
18Metric1680%16%
19Metric1717%
20Metric1818%
21Metric1919%
22Metric2020%
Employee 1


You can do this:

Book1
ABCDE
1
2Select Employee:Employee 1Select month:Jan
3
4MetricGoalIndividualTeam
5Metric195%1%
6Metric640%6%
7Metric390%3%
8Metric1188%11%
9
1x1s
Cell Formulas
RangeFormula
D5:D8D5=LET(s,INDIRECT("'"&$C$2&"'!A2:N50"),INDEX(s,MATCH($B5:$B8,INDEX(s,0,1),0),MATCH($E$2,INDEX(s,1,0),0)))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,804
Messages
6,181,061
Members
453,017
Latest member
rlundbulls23

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