Update Excel File on Confluence and have all charts automatically update
Asked by a_mack:

I have a master Excel file that contains a number of charts. Every month this file is updated with new data and saved into our company OneDrive with the same filename.

I would like to be able to:

1. Embed graphs from this SINGLE Excel file on MULTIPLE DIFFERENT pages in Confluence.

2. Update the Excel file with new data and save it with the same name in the same location on the OneDrive.

3. Have all of the graphs across the multiple Excel pages update.

Questions:

1. Is there a way to do this directly?

2. Do I need to write a macro that exports all the graphs and images and then have Confluence read in the images?

Any advice is greatly appreciated!


Answers:
author: Andrey Khaneev _StiltSoft_
body: There are some different approaches to do this:

1. Attach this Excel file to a page. Then use [Office Excel](https://confluence.atlassian.com/doc/office-excel-macro-375849173.html) macro to output sheets on Confluence pages. After you edit / upload a new version of the file, Office Excel macro will show updated sheets.
2. Store and edit tables directly in Confluence pages. Then use [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app to perform [aggregations](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Pivot+table+macro) and [calculations](https://docs.stiltsoft.com/display/public/TableFilter/Custom+Transformation+-+use+cases+with+advanced+SQL+queries#CustomTransformation-usecaseswithadvancedSQLqueries-Usingformulas) and [build charts](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Chart+from+Table+macro) directly in confluence. Then you can include charts on different pages using [Page Include](https://confluence.atlassian.com/doc/include-page-macro-139514.html) / [Excerpt Include](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) / [Table Excerpt Include](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros) macros.
3. Combine approaches #1 and #2: use Office Excel macro as a source for Chart from Table macro.

comments: author: a_mack
body: Thanks [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696) for taking the time to respond.

I do not see how either of these approaches solve our problem. Both approaches seem to require one Excel file per page. I edited the question to make this distinction more obvious.

Any help is greatly appreciated.


author: Andrey Khaneev _StiltSoft_
body: No, they require a single Excel file on one of those pages, other pages will use the same Excel file. The idea is that this one file can be reused with the help of one of these macros: [Office Excel](https://confluence.atlassian.com/doc/office-excel-macro-375849173.html?_ga=2.124518154.1031888729.1569154553-1905545116.1524137413) / [Page Include](https://confluence.atlassian.com/doc/include-page-macro-139514.html) / [Excerpt Include](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) / [Table Excerpt Include.](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros)


Tags: ms-excel