Export and merge Excel files to another page
Asked by Klara H:

Hi, since I wanted to create a table which includes formulas I uploaded an Excel file which I can edit on a page (lets call that page "Page 1"). I did the same thing for some other pages ("Page 2" and "Page 3").

What I want to do is to be able to edig page 1-3 separately on different pages but i) connect them all to a new page, "Page 4", and ii) merge them into one Excel file.

Is this possible?

I appreciate any help I can get! I want to avoid paying for a macro but it seems like CelecteMS Math or Spreatsheet for Confluence could be useful if it isn't possible to do this with Excel files, right?


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hello Clara,

If you need to pull multiple tables (both manually created or generated with the help of the macros outputting tables), you can use the combination of the [Table Excerpt Include](https://docs.stiltsoft.com/pages/viewpage.action?pageId=17301667#HowtouseTableExcerptandTableExcerptIncludemacros-UsingtheTableExcerptIncludeMacro) and [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro?src=contextnavpagetreemode) macros. [Table Excerpt Include](https://docs.stiltsoft.com/pages/viewpage.action?pageId=17301667#HowtouseTableExcerptandTableExcerptIncludemacros-UsingtheTableExcerptIncludeMacro) provides an ability to pull any tables from child pages, from specific pages, from pages by labels and more. [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro?src=contextnavpagetreemode) merges all the tables in one.

1. Insert the [Table Excerpt](https://docs.stiltsoft.com/pages/viewpage.action?pageId=17301667#HowtouseTableExcerptandTableExcerptIncludemacros-UsingtheTableExcerptMacro) macro, set the Excerpt name parameter, and place the tables (or the macros outputting tables) within the macro body on every page.

![2019-03-28_18h09_44.png](https://community.atlassian.com/t5/image/serverpage/image-id/50108i2CFB0895C5B80C46/image-dimensions/503x279?v=v2 "2019-03-28_18h09_44.png")

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

![2019-03-28_18h22_47.png](https://community.atlassian.com/t5/image/serverpage/image-id/50109iD852670625C93259/image-dimensions/552x353?v=v2 "2019-03-28_18h22_47.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-03-28_18h11_16.png](https://community.atlassian.com/t5/image/serverpage/image-id/50107i895EF57012D95DD9/image-dimensions/488x221?v=v2 "2019-03-28_18h11_16.png")![2019-03-28_18h27_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/50110iC8CDC8D2CAA4CC2F/image-dimensions/552x356?v=v2 "2019-03-28_18h27_21.png")

4. In the Options tab of the Table Transformer macro browser select the option Export to CSV button. The button appears in the page view mode.

![options.png](https://community.atlassian.com/t5/image/serverpage/image-id/50115i398E59962EFEE0EE/image-dimensions/550x354?v=v2 "options.png")

The macros are available only in Server and Data Center versions of the app for now.


author: AnnWorley
body: You can display the spreadsheets from pages 1 - 3 on page 4 by using the [Excerpt Macro](https://confluence.atlassian.com/doc/excerpt-macro-148062.html) and [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) but merging them into an Excel spreadsheet is not a function Confluence can perform. Confluence doesn't export to Excel or CSV format.

In addition to the add-ons you mentioned, there is [Excellentable Spreadsheet for Confluence](https://marketplace.atlassian.com/plugins/Addteq.Excellentable/server/overview). Please let us know which one you like most for your use case, I am sure there are other people with similar requirements.


Tags: merge

ms-excel