I have two workbooks that have sheets that logically should look identical. I don't want to manually maintain their identical-ness, so I want to dynamically link them (just as you'd do between cells using formulas: "=A1"). I want to link the whole spreadsheet, not just a few cells. Is there a way to do this without making 238427398729 formulas, thus crashing my machine? Is there a way to say "=sheet2" as a formula defining the content of a whole sheet?
asked Jul 29, 2014 at 22:16 TheBigAmbiguous TheBigAmbiguous 303 2 2 gold badges 4 4 silver badges 10 10 bronze badgesI'm not aware of any way to link two complete workbooks like that. What if the linked workbook is closed, for example? Or both workbooks are open and updated at the same time? It'd be crazy complex to maintain such a link in all cases. Personally I'd suggest having a system when one workbook is always the master and, when it's closed, do a SaveAs in the Workbook_BeforeClose event.
Commented Jul 29, 2014 at 22:40Well you can certainly have links between workbooks, with a cell having a formula like "=[book1.xlsx]Sheet1!A1". This points to a particular cell though, not a whole sheet.
Commented Jul 30, 2014 at 14:39Yes, cell-by-cell links are possible. I was talking about one link for the whole lot, since you specifically said in your question that cell-by-cell links are not acceptable for you as a solution.
Commented Jul 30, 2014 at 14:43You may be able to use the "Get External Data" feature (depending on the layout of your source sheet)
Steps to create in Excel 2010 (other versions menus are a little diferent)
Resulting linked query can be manually and / or periodically refreshed
answered Jul 30, 2014 at 7:07 chris neilsen chris neilsen 53k 10 10 gold badges 86 86 silver badges 124 124 bronze badgesTo dynamically link an entire sheet - manually:
Create a new sheet, in this case Sheet5 will duplicate Sheet3
in the A1 cell of the new sheet reference the source sheet =Sheet3!A1
Then select cell A1 in the target sheet (Sheet5 in my case) and use the lower right handle in the cell to drag it over to width of cells you need. In my case it was over to the "I" column.
Next select the cells in the 1st row of the target sheet that you want to use, and again use the handle in the lower right to drag down to as many rows as you need, in my case down to row 60.
Then go back to the source sheet and select the entire sheet (click the square between the row numbers and the column letters) and then click the Format Painter and switch to the target sheet and apply it to the whole sheet (click the square between the row numbers and the column letters).
You may find 0 in some cells, so you will have to manually clear content in those cells. You may also have to change the width of cell columns to match the original. Still, it is a pretty good duplicate that remains dynamically linked.
In my case I wanted the same exact data but wanted to have some columns invisible for print purposes. So for me, I just changed the font for the columns I did not want to have visible when printing to white. Thus I have a worksheet for preparing data, and a worksheet for printing.