Pull data from a table column on one page into a table on a different page
Asked by Ursula Wright:

I have a table that I need to pull content from (if it matches certain criteria) and then place that content into another table on a different page (not a child or parent page). For example, I have a table with a column called 'status'. The status column contains the words green, yellow, or red. If the status is 'red', I'd like to pull the whole row of data that contains the 'red' status and place it into another table. How do I do this?


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

I can suggest you the solution with automatic merging and filtering tables.

If you need to pull multiple tables (both manually created or generated with the help of the macros outputting tables), you can use the [Table Excerpt Include](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community) macro that provides an ability to pull any tables from child pages, from specific pages, from pages by labels and more.

After that, you can use the [Table Transformer](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Transformer+macro?utm_source=atl_community) macro to merge all the tables in one.

The [Table Filter](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Filter+macro?utm_source=atl_community) macro can help you to hide unnecessary columns and filter rows using the necessary criteria.

The workflow may be as follows:

1. Insert the Table Excerpt 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/51005i42413F589781DB07/image-dimensions/425x236?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/51004i8F9E61BF34D474E2/image-dimensions/564x360?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/51001i349980C65250A930/image-dimensions/369x167?v=v2 "2019-03-28_18h11_16.png")

![2019-03-28_18h27_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/51003i4D86E46CF987E158/image-dimensions/570x368?v=v2 "2019-03-28_18h27_21.png")

4. Add the Table Filter macro to the merged table to hide unnecessary columns and filter rows (you can hide the filtration panel).

![2019-04-08_12h12_05.png](https://community.atlassian.com/t5/image/serverpage/image-id/51002i5E9CB1D8864EC8E7/image-dimensions/493x341?v=v2 "2019-04-08_12h12_05.png")

Let me know if you need more details.

comments: author: Greig Metcalfe
body: I had the same question and then read this. This absolutely solved the issue I was having! Absolutely awesome!

Thank you Natalie, you rock!


author: Natalie Paramonova [Stiltsoft]
body: Greig, thank you! Feel free to contact us to find solutions to your use cases. :)


author: R2RO6
body: Same as Greig, I had similar doubts and this explanation was perfect! thank you so much Natalie!!

PD: I just created my user in this community to thank you, imagine how much that meant to me. :)


author: Ashmeer Mahabeer
body: Good Day,

I have the very same query to run.

I am unable to find the "Table Excerpt Include" macro. I am using

### Confluence version 7.13.2. {#toc-hId-1315297492}

Please advise, is there an alternative?

Regards

Ash


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Ashmeer Mahabeer](/t5/user/viewprofilepage/user-id/4766272) ,

The [Table Excerpt/Table Excerpt Include](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community) macros come with the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server&utm_source=atl_community) app. If you can't find our macros, it means that the add-on is not installed for your Confluence instance.

Try to look into the standard Excerpt/Excerpt Include macros then.


author: Ashmeer Mahabeer
body: Hello Katerina,

Thank you for the prompt feedback.

Is there anyone that can assist me over a TEAMS call, or be guided as to the Excerpts to use to consolidate 15 tables into one then filter the rows based on a specified parameter?

Regards

Ash


author: Katerina Kovriga {Stiltsoft}
body: If we are talking about the Table Filter and Charts for Confluence app, you can book a live demo session [here](https://calendly.com/tablefilter/live-demo?month=2022-02). Note in the description that you are interested in our Table Excerpts macros and filtering of the combined report.


author: Robin
body: Hi Natalie and other experts ... I was using Natalie's answer above (Table Excerpt Include macro wrapped in a Table Transformer macro) to merge together tables from different pages. It looks perfect in the Preview within the macro but when I save the page, it renders two copies of the merged table. Has anyone seen this? More importantly, does anyone know how to solve it?


author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Robin](/t5/user/viewprofilepage/user-id/5517),

To hide the source table in Table Transformer, please switch to the Options tab and set Hide all content in Source data:

![2023-08-14_17h27_20.png](https://community.atlassian.com/t5/image/serverpage/image-id/275016i16B7861D6413D4DE/image-size/large?v=v2&px=999 "2023-08-14_17h27_20.png")

In general, notice that if you're using the latest versions of the app, you do not need to use Table Transformer now for merging tables, just tick the Show as a report table option in Table Excerpt Include.

![2023-08-14_17h27_35.png](https://community.atlassian.com/t5/image/serverpage/image-id/275017i3A0AEB8EC7850A1A/image-size/large?v=v2&px=999 "2023-08-14_17h27_35.png")


author: Stiltsoft support
body: And for other people who may come across this question: please take a look a these blog posts where we show how to create combined reports step-by-step

* [How to Aggregate and Reuse Data From Multiple Confluence Tables](https://stiltsoft.com/blog/how-to-aggregate-and-reuse-data-from-multiple-confluence-tables/?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)
* [How to Create Reports from Multiple Confluence Tables](https://stiltsoft.com/blog/how-to-create-reports-from-multiple-confluence-tables/?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)

Hope it helps your cases!


author: George Ivanov
body: Hi there,

for the server option of Confluence you can use "SQL-Powered Table Transformer" macro (<https://marketplace.atlassian.com/apps/1219300/sql-powered-table-transformer>) along with the standard Excerpt/Excerpt include macro

Put each of the tables inside the Excerpt macro container.

On the summary page add the SQL-Powered Table Transformer macro container, then inside the container link all the tables from other pages using the Excerpt Include macro.

Adjust the SQL Query in the SQL-Powered Table Transformer macro properties to pull the needed rows from the needed tables. Table names will be TABLE_1, TABLE_2, etc. (according to the order you put them into the SQL-Powered Table Transformer)

Cheers!

comments: author: Robin
body: This worked for me! Thank you [George Ivanov](https://community.atlassian.com/t5/user/viewprofilepage/user-id/764848)! :)


author: Steffi Frank
body: Hi Ursula

works quite simple like this:

open table A in view mode and mark all content in row with status 'red', copy with ctrl+C

![copy row.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/27413iB8C4A46C9F603CAB/image-dimensions/287x163?v=v2 "copy row.jpg")

open table B in edit mode and paste the content with ctrl+V

![copy row 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/27414i4FDEEA2D12ED772B/image-dimensions/433x192?v=v2 "copy row 2.jpg")

comments: author: Ursula Wright
body: Thanks, Steffi Frank. One thing I forgot to mention is that I'd like this content to move automatically. There's a lot of updates and pieces of content that will need to move to 3 different tables on 3 different pages. I don't want to do this manually each time.

Steffi Frank, do you know how to set this process up so that it happens automatically?


Tags: filter

ms-excel

table

table-excerpt

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer