Indirect Formula

zinah

Active Member
Joined
Nov 28, 2018
Messages
353
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm struggling to get the right formula to get below dynamic data.

Here's what I have:

Tab that has the data by state and month (Data Tab), and other tab to get the data based on State & Month and whenever I change the month, the data change for each state. In below example data, Jun is drop-down list that has all the month, 6 stands for working month which is Jun in this example, and changes whenever I change the month, i.e. Feb = 2, Jan = 1 and so on.

What I need:

To get the max value of each state by month, using the help of cell that has "6". Anyone can help me with building the right formula using Indirect?

Jun
6​
= to help in formula
ValueData Tab
State1JanFebMarAprMayJunJulAugSepOctNovDec
State2State1
36​
39​
49​
62​
71​
79​
83​
81​
74​
63​
51​
39​
State3State2
47​
51​
57​
62​
69​
73​
81​
81​
75​
64​
52​
45​
State4State3
37​
40​
48​
59​
68​
78​
83​
81​
74​
63​
53​
42​
State5State4
51​
55​
63​
72​
80​
87​
90​
89​
82​
73​
63​
54​
State6State5
47​
51​
60​
70​
78​
86​
90​
88​
81​
71​
61​
51​
State7State6
69​
70​
73​
78​
83​
89​
95​
96​
92​
83​
75​
69​
State7
32​
34​
43​
56​
68​
77​
81​
79​
72​
60​
48​
37​
Max Value
69​
70​
73​
78​
83​
89​
95​
96​
92​
83​
75​
69​
 

Attachments

  • 2020-06-18 12_47_25-Book2 - Excel.png
    2020-06-18 12_47_25-Book2 - Excel.png
    5.6 KB · Views: 4

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How about

+Fluff New.xlsm
ABCDEFGHIJKLM
1JanFebMarAprMayJunJulAugSepOctNovDec
2State1363949627179838174635139
3State2475157626973818175645245
4State3374048596878838174635342
5State4515563728087908982736354
6State5475160707886908881716151
7State6697073788389959692837569
8State7323443566877817972604837
9Max Value697073788389959692837569
Data


+Fluff New.xlsm
ABC
1
2Jun6
3
4
5
6State179
7State273
8State378
9State487
10State586
11State689
12State777
Cases
Cell Formulas
RangeFormula
B6:B12B6=INDEX(Data!$B$2:$M$8,MATCH(A6,Data!$A$2:$A$8,0),$C$2)
 
Upvote 0
How about

+Fluff New.xlsm
ABCDEFGHIJKLM
1JanFebMarAprMayJunJulAugSepOctNovDec
2State1363949627179838174635139
3State2475157626973818175645245
4State3374048596878838174635342
5State4515563728087908982736354
6State5475160707886908881716151
7State6697073788389959692837569
8State7323443566877817972604837
9Max Value697073788389959692837569
Data


+Fluff New.xlsm
ABC
1
2Jun6
3
4
5
6State179
7State273
8State378
9State487
10State586
11State689
12State777
Cases
Cell Formulas
RangeFormula
B6:B12B6=INDEX(Data!$B$2:$M$8,MATCH(A6,Data!$A$2:$A$8,0),$C$2)
Thank you for your input, this is exactly what I wanted :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

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