colinheslop1984
Board Regular
- Joined
- Oct 14, 2016
- Messages
- 129
- Office Version
- 2016
I have 5 documents with 52 tabs, one per week.
I have another sheet where I want to consolidate the data.
Because the sheets represent week numbers I want to throw in a criteria referencing the sheet name so that I can just copy and paste the formula into the weekly tabs of my master sheet rather than having to retype them all.
For example if I have sheets 1:52 on all documents including master and I use
=INDEX('[LE2.xlsx]22'!$D$5:$D$6,1,1)
this will sum exactly what I need but only for this particular worksheet so it means I would have to change 22! to 23! to 24! for every calculation I need to make which would take too long.
What if I have the worksheet name '22' or '23' etc in cell I1, how can I use this to capture the data I need.
In other words, I want to search all worksheets for [LE2] for the one which matches the name in I1 then sum cell D5 from that tab. How do I do it?
I was thinking indirect but then I'm not sure how to write this up when its referencing an external source
I have another sheet where I want to consolidate the data.
Because the sheets represent week numbers I want to throw in a criteria referencing the sheet name so that I can just copy and paste the formula into the weekly tabs of my master sheet rather than having to retype them all.
For example if I have sheets 1:52 on all documents including master and I use
=INDEX('[LE2.xlsx]22'!$D$5:$D$6,1,1)
this will sum exactly what I need but only for this particular worksheet so it means I would have to change 22! to 23! to 24! for every calculation I need to make which would take too long.
What if I have the worksheet name '22' or '23' etc in cell I1, how can I use this to capture the data I need.
In other words, I want to search all worksheets for [LE2] for the one which matches the name in I1 then sum cell D5 from that tab. How do I do it?
I was thinking indirect but then I'm not sure how to write this up when its referencing an external source