Forum Discussion
HELP ON REFERENCING ANOTHER WORKBOOK
I wonder if anyone can help me. I understand how to reference another workbook. However I am wanting to link another wookbook where the workbook name is quoted in the current sheet.
I.E =[WK01.xlsx]Sheet1!$A$1
However i am wanting to automatically get [workbook name] from column A
| workbook | EARNINGS | ||||
| MON | TUES | WED | THURS | FRI | |
| WK01 | £150.00 | ||||
| WK02 | |||||
| WK3 | |||||
| WK4 | |||||
| WK5 | |||||
| WK6 | |||||
| WK7 | |||||
| WK8 | |||||
| WK9 | |||||
| WK10 |
Thanks in advance
11 Replies
- mathetesGold Contributor
I agree with the advice given by HansVogelaar
Here's a reference that may give further guidance on the use of INDIRECT: https://exceljet.net/formula/indirect-named-range-different-sheet
You might use the INDIRECT function for this, but that only works if the workbook referred to is open in Excel, so you'd have to keep WK01.xlsx to WK10.xlsx open.
Let's say WK01 is in cell A3.
The formula in B3 could look like this:
=INDIRECT("'["&A3&".xlsx]Sheet1'!A1")This can be filled down.
- LEE_STEWARTCopper Contributor
ok thankyou, is there a way to do something similar where the wookbooks didn't have to be open. As this would progress to 52 weeks over the course of the year and thats a lot off wookbooks to have open at any one time just to compare and add up over the course of the year?
- SergeiBaklanDiamond Contributor
You may check this Referencing value in a closed Excel workbook using INDIRECT? if something will help, I didn't test what is suggested in it.