Excel file - formulas not working
Asked by Mik_J:

Hello all,

so I'm inserting xlsx file to a confluence page and all complicated formulas which I've done are not working. In excel file it looks like this: (there is as well conditional formatting)![screen.png](/t5/image/serverpage/image-id/174746iB9076F8D3DCF61BA/image-size/large?v=v2&px=999 "screen.png")

But in confluence page it's not working if formula is complicated)![screen1.png](/t5/image/serverpage/image-id/174747iAA69A4B78368AAC7/image-size/large?v=v2&px=999 "screen1.png")

File is edited via Atlassian compaion and it is needed to read that result from cells to avoid update this table every time by hands.


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Mik_J](/t5/user/viewprofilepage/user-id/4680243) ,

We can suggest trying our app - [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud), maybe you've already been using it in your company for filtration and data aggregation.

The add-on also provides the [Table from CSV](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+from+CSV+macro) macro that supports outputting data from a URL (for example, Google Sheets where you can use your formulas) or an attached file in CSV and TSV formats.

The recreated table looks like a regular Confluence table and can be further [filtered](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro), [aggregated](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Pivot+Table+macro) and [visualized](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro). All the changes made to the source spreadsheet or attachment are immediately reflected on the page.

By the way, you may also perform calculations right in Confluence with the help of the [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro. And [here is an example](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting#Advancedtablecellsformatting-Conditionalformatting) how to set conditional formatting for Confluence tables with this macro.

comments: author: Mik_J
body: Hey [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Yes, I've been already using Table Filter and Charts for Confluence. I will make sure 100% if there is a solution for my query and I will return with feedback.

But, why when file is opened via link in preview mode, all is working fine, but when it's added to confluence page it is not?


author: Katerina Kovriga {Stiltsoft}
body: Maybe it's some kind of a bug - I've checked the Excel macro in our test Cloud instance with simple formulas such as (A2+B2) and a standard predefined color scheme for conditional formatting - it worked for me. But we don't use the Excel macro often especially with complex formulas.

What concerns our app, we are almost ready with the new Spreadsheet macro - it looks like a fully functional Excel sheet right on the Confluence page with all Excel features included. Hope that this macro will help in similar cases.


author: Mik_J
body: So, I did some checks with that excel file, as some formulas are working good, Except this one's with formula EXACT, as it's not looping through arrays.

Example:

=SUM(IFERROR(IF(EXACT(  
IFS($K$10:$K$504=IF(B5="Not Defined";"";B5); ROW($K$10:$K$504);  
ISBLANK($K$10:$K$504)=TRUE; "blankk");  
IF(ISBLANK($F$10:$F$504)=FALSE; ROW($F$10:$F$504))  
)=TRUE;1;0);0))


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this question mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) app, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

The macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You'll be able to use cells' formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view\&edit modes.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)


Tags: cloud

confluence-cloud

formula

ms-excel