Discussion External reference to different tabs in Excel
https://techcommunity.microsoft.com/t5/excel/external-reference-to-different-tabs/m-p/362692#M26833
<P>Need some syntax help:</P><P> </P><P>I have a stand alone worksheet / file where I am summarizing information from an external workbook. The external workbook has individual tabs, all with the same information and format, but different values. For example, the external workbook has tabs for Monday, Tuesday, Wednesday, etc. The information documents time spent working, driving, sleeping, etc adding to 24 hrs.</P><P> </P><P>The table in the separate summary file is on a single tab labeled 'summary,' and creates a single table with all of that information. In the summary table, the reference has the form:</P><P> </P><P>='[Reference file example.xlsx]Monday'!$B2</P><P> </P><P>To save time, I want to replace the tab name (Monday above) with my own text, preferably from a table within the same spreadsheet. This way, I can copy the link, and reference the local table that contains the proper tab name.</P><P> </P><P>Thus, within my summary sheet, I'd have a vertical table of cells that contain text like Monday, Tuesday, Wednesday. If I created a new tab in the external file called Saturday, I would drag the formula to the right, and it would create a new cell with the name Saturday. I could then drag down the columns to fill in the information (thus the absence of a $ in front of the 2 in the formula above.</P><P> </P><P>The external reference workbook would look like this. There would be individual tabs, each for a day of the week:</P><TABLE><TBODY><TR><TD>Time Card</TD><TD> </TD></TR><TR><TD> </TD><TD>Monday</TD></TR><TR><TD>Working</TD><TD>8</TD></TR><TR><TD>Driving</TD><TD>2</TD></TR><TR><TD>Sleeping</TD><TD>8</TD></TR><TR><TD>Loafing</TD><TD>6</TD></TR><TR><TD>Total</TD><TD>24</TD></TR></TBODY></TABLE><P> </P><P>The summary worksheet, in a stand alone file, would look like this:</P><P> </P><TABLE><TBODY><TR><TD> </TD><TD>Monday</TD><TD>Tuesday</TD><TD>Wednesday</TD></TR><TR><TD>Working</TD><TD>8</TD><TD>6</TD><TD>12</TD></TR><TR><TD>Driving</TD><TD>2</TD><TD>1</TD><TD>2</TD></TR><TR><TD>Sleeping</TD><TD>8</TD><TD>8</TD><TD>8</TD></TR><TR><TD>Loafing</TD><TD>6</TD><TD>9</TD><TD>2</TD></TR><TR><TD>Total</TD><TD>24</TD><TD>24</TD><TD>24</TD></TR><TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Monday</TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Tuesday</TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Wednesday</TD><TD> </TD><TD> </TD></TR><TR><TD>Saturday</TD><TD> </TD><TD> </TD><TD> </TD></TR></TBODY></TABLE><P> </P><P>Dragging the cell with the heading Wednesday would do 2 things:</P><OL><LI>Continue the reference to the external workbook.</LI><LI>Contain the reference to the new tab in that workbook with the name Saturday from the table below it.</LI></OL><P>So, each time someone updates the values on the tabs in the external workbook, the summary values would also change. </P><P> </P><P>This is an example of what I'm doing, not the real thing. I'd be using the same type of cell references in the formulas, though. I want to do this without using macros...</P><P> </P><P>Edit - The table with the days of the week can be in a row instead of a column, so I can drag the formula to the right and retain the cell references.</P><P> </P><P>Any ideas? Thank you!</P><P> </P>Thu, 07 Mar 2019 14:33:11 GMTBill1142019-03-07T14:33:11ZExternal reference to different tabs
https://techcommunity.microsoft.com/t5/excel/external-reference-to-different-tabs/m-p/362692#M26833
<P>Need some syntax help:</P><P> </P><P>I have a stand alone worksheet / file where I am summarizing information from an external workbook. The external workbook has individual tabs, all with the same information and format, but different values. For example, the external workbook has tabs for Monday, Tuesday, Wednesday, etc. The information documents time spent working, driving, sleeping, etc adding to 24 hrs.</P><P> </P><P>The table in the separate summary file is on a single tab labeled 'summary,' and creates a single table with all of that information. In the summary table, the reference has the form:</P><P> </P><P>='[Reference file example.xlsx]Monday'!$B2</P><P> </P><P>To save time, I want to replace the tab name (Monday above) with my own text, preferably from a table within the same spreadsheet. This way, I can copy the link, and reference the local table that contains the proper tab name.</P><P> </P><P>Thus, within my summary sheet, I'd have a vertical table of cells that contain text like Monday, Tuesday, Wednesday. If I created a new tab in the external file called Saturday, I would drag the formula to the right, and it would create a new cell with the name Saturday. I could then drag down the columns to fill in the information (thus the absence of a $ in front of the 2 in the formula above.</P><P> </P><P>The external reference workbook would look like this. There would be individual tabs, each for a day of the week:</P><TABLE><TBODY><TR><TD>Time Card</TD><TD> </TD></TR><TR><TD> </TD><TD>Monday</TD></TR><TR><TD>Working</TD><TD>8</TD></TR><TR><TD>Driving</TD><TD>2</TD></TR><TR><TD>Sleeping</TD><TD>8</TD></TR><TR><TD>Loafing</TD><TD>6</TD></TR><TR><TD>Total</TD><TD>24</TD></TR></TBODY></TABLE><P> </P><P>The summary worksheet, in a stand alone file, would look like this:</P><P> </P><TABLE><TBODY><TR><TD> </TD><TD>Monday</TD><TD>Tuesday</TD><TD>Wednesday</TD></TR><TR><TD>Working</TD><TD>8</TD><TD>6</TD><TD>12</TD></TR><TR><TD>Driving</TD><TD>2</TD><TD>1</TD><TD>2</TD></TR><TR><TD>Sleeping</TD><TD>8</TD><TD>8</TD><TD>8</TD></TR><TR><TD>Loafing</TD><TD>6</TD><TD>9</TD><TD>2</TD></TR><TR><TD>Total</TD><TD>24</TD><TD>24</TD><TD>24</TD></TR><TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Monday</TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Tuesday</TD><TD> </TD><TD> </TD><TD> </TD></TR><TR><TD>Wednesday</TD><TD> </TD><TD> </TD></TR><TR><TD>Saturday</TD><TD> </TD><TD> </TD><TD> </TD></TR></TBODY></TABLE><P> </P><P>Dragging the cell with the heading Wednesday would do 2 things:</P><OL><LI>Continue the reference to the external workbook.</LI><LI>Contain the reference to the new tab in that workbook with the name Saturday from the table below it.</LI></OL><P>So, each time someone updates the values on the tabs in the external workbook, the summary values would also change. </P><P> </P><P>This is an example of what I'm doing, not the real thing. I'd be using the same type of cell references in the formulas, though. I want to do this without using macros...</P><P> </P><P>Edit - The table with the days of the week can be in a row instead of a column, so I can drag the formula to the right and retain the cell references.</P><P> </P><P>Any ideas? Thank you!</P><P> </P>Thu, 07 Mar 2019 14:33:11 GMThttps://techcommunity.microsoft.com/t5/excel/external-reference-to-different-tabs/m-p/362692#M26833Bill1142019-03-07T14:33:11Z