Paul at GTS
Board Regular
- Joined
- May 17, 2004
- Messages
- 56
- Office Version
- 365
- Platform
- Windows
Hi,
We have two workbooks, one logs delivery statistics, the other logs sales statistics.
At present we have the sales workbook looking at the delivery workbook to pull out milages etc. The workbooks have a tab per month.
The data is pulled across using Index & Match with named ranges.
My issue is that the named range needs to be changed with the start of each new month as the sheet tab changes Jan-19 to Feb-19 etc.
Is there a way of inserting the required tab name into the Named Range - ideally I'd like to input Jan-19 into cell A1 and the month name is picked up from there and positioned in the named range. Below are the formula and ranges from current month.
This is the formula that pulls data over:
=INDEX(MilageMatrix,MATCH($C4,MilageLookup,0),4)
Milage Matrix Range :
='[Time sheets 08 v2.0.xlsx]Jun 19'!$AF$7:$AI$37
Milage Lookup Range :
='[Time sheets 08 v2.0.xlsx]Jun 19'!$AF$7:$AF$37
Can it be done ?
Thanks
We have two workbooks, one logs delivery statistics, the other logs sales statistics.
At present we have the sales workbook looking at the delivery workbook to pull out milages etc. The workbooks have a tab per month.
The data is pulled across using Index & Match with named ranges.
My issue is that the named range needs to be changed with the start of each new month as the sheet tab changes Jan-19 to Feb-19 etc.
Is there a way of inserting the required tab name into the Named Range - ideally I'd like to input Jan-19 into cell A1 and the month name is picked up from there and positioned in the named range. Below are the formula and ranges from current month.
This is the formula that pulls data over:
=INDEX(MilageMatrix,MATCH($C4,MilageLookup,0),4)
Milage Matrix Range :
='[Time sheets 08 v2.0.xlsx]Jun 19'!$AF$7:$AI$37
Milage Lookup Range :
='[Time sheets 08 v2.0.xlsx]Jun 19'!$AF$7:$AF$37
Can it be done ?
Thanks