UPDATE: I found a workaround, but not really a solution in my opinion. Instead of using "Stories!A:A" I can use "INDIRECT("Stories!A:A") which seems to work in my limited testing so far. It just adds length and complexity to my formulas.. I would like an easier way if someone knows of one.
I have multiple small spreadsheets that all have the same format and the same 3 sheets. "Stories" "2024" and "2025". In the two sheets 2024 and 2025 they reference data in the "Stories" sheet in multiple ways. One example is "=COUNTIFS(Stories!A:A,B1)". The sheets within a workbook must always reference their own sheet named "Stories" From the master workbook I try to copy the 2025 worksheet into each of the small workbooks, Region1, Region2, Region3, and so on. When I copy the sheet the new sheet now has the original filename/workbook name added into the reference: "=COUNTIFS([main.xlsx]!Stories!A:A,B1)" which then references the original sheet. But, I want the formula to reference the sheet of the same name in the current workbook, not in the master.
I have tried:
- after the copy I can do a Find/Replace and remove the original filename, for example: Find "[main.xlsx]" replace with "" and that works fine. But, that's a manual step for each of the workbooks that I would rather not have to do.
- I have unchecked the option in Advanced settings: "save external link values" in both the originating and destination workbook. That didn't work.
- I have tried using a Table for the data instead of accessing the sheet directly: "StoryText[month]" But, the same thing happens--the filename is added.
- I have tried using the "Workbook Links" change, but there is no "remove link" option. I can select the filename of the current/destination workbook, and that works, but still a lot of clicking and scrolling to the filename.
I have started to explore using a VBA routine, but that seems like overkill to create, debug, and then maintain across a 20+ workbooks.
Any other suggestions? options?
thanks,
Rick