Connecting spreadsheets/tables across wiki pages
Asked by Tim Oldendorf:

Is there a way for Confluence to connect a spreadsheet/table across different pages? Or possibly a plugin that could accomplish this?

Essentially I want to have a master page that would have a spreadsheet that contains a master budget. Then I have some child pages that would take the data from the spreadsheet on the master page and display on a spreadsheet in those child pages.


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hi Tim,

If you need to pull data from separated pages on one page and create a master table, you can use the [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app. Starting from version 5.0 the app includes improved [Table Excerpt Include](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?src=contextnavpagetreemode) macro that let you multi-excerpt tables from different sources (current page, child pages, pages by labels and more) and the [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro?src=contextnavpagetreemode) macro that let you merge and transform tables using the default presets and custom SQL queries.

The steps may be as follows:

1. Insert the Table Excerpt macro, set the Excerpt name parameter, and place the tables (or Office Excell macro) within the macro body on every page.

![2019-04-09_15h01_36.png](https://community.atlassian.com/t5/image/serverpage/image-id/50991i90D299AB15501024/image-dimensions/347x308?v=v2 "2019-04-09_15h01_36.png")![2019-04-09_15h00_53.png](https://community.atlassian.com/t5/image/serverpage/image-id/50992iC36499BE342FDFF9/image-dimensions/354x307?v=v2 "2019-04-09_15h00_53.png")

2. Add the Table Excerpt Include macro on the master page, specify Excerpt name and select an appropriate Excerpt source.

![2019-04-09_15h02_12.png](https://community.atlassian.com/t5/image/serverpage/image-id/50989iDD2C2E91014270A8/image-dimensions/532x330?v=v2 "2019-04-09_15h02_12.png")

3. Wrap the Table Excerpt include macro in the Table Transformer macro, use the default presets or custom SQL queries to merge all the tables in one.

![2019-04-09_15h02_53.png](https://community.atlassian.com/t5/image/serverpage/image-id/50988i12E485B0BA59231B/image-dimensions/364x158?v=v2 "2019-04-09_15h02_53.png")

![2019-04-09_15h03_14.png](https://community.atlassian.com/t5/image/serverpage/image-id/50990iD3E555BDED1E515A/image-dimensions/561x331?v=v2 "2019-04-09_15h03_14.png")

The Table Excerpt Include and Table Transformer macros are available in Confluence Server and Data Center for now.

If you have a large master table and want to display it partially on different pages, you can wrap the table in the Table Excerpt macro and insert the Table Excerpt Include macros on different pages. Then you can wrap the Table Excerpt Include macros in the [Table Filter](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+filter+macro?src=contextnavpagetreemode) macro and set filters to show only necessary data.

Please let me know if you need more details.


author: JP _AC Bielefeld Leader_
body: You could also use the Excel macro \& configure it to your needs (Worksheet, area to display, etc) on each affected page. The Excel macro always uses the master page \& the excel file on the master page as reference. You could have the first worksheet used \& displayed on the master page \& a child worksheet used by any referencing child pages. When you then integrate an app like Cenote Lockpoint, which locks the excel file when someone is editing it, you might have a nice solution...

Best

JP


author: Jared Brenner
body: Hi Tim,

So long as you don't need to accept input on the child pages, you could always put the master table in an [Excerpt](https://confluence.atlassian.com/doc/excerpt-macro-148062.html) macro, then pull it in to the child pages using the [Excerpt Include](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) macro. I've gotten plenty of use out of both of these. For a little more versatility you may even want to look into the paid [MultiExcerpt](https://marketplace.atlassian.com/apps/169/multiexcerpt?hosting=server&tab=overview) macro.

Good luck!


author: Mirek
body: For many years there was no ability to sum up values in the table, so I guess that OOTB connecting tables between pages would be on advanced level :)

I am not fully aware of any plugin that might give you exactly what you are looking for .. but you might take a look on Table Filter plugin which have a Pivot table - <https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Pivot+table+macro>

"*Starting from version 3.0.0 Table Filter add-on allows you to generate pivot tables from the data tables. A pivot table is such a kind of a table that allows you to get the summarized and aggregated data values from the master table.*"

comments: author: Andrey Khaneev _StiltSoft_
body: Also there are [Total row](https://docs.stiltsoft.com/display/public/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-OutputtingtheTotalcolumn) and [Total column](https://docs.stiltsoft.com/display/public/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-OutputtingTotalsforcolumns) options in Table Filter macro.


Tags: confluence-server

server