Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sum calculation seems incorrect in connected cells

Matthias Goepfert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 8, 2023

I have a table where I added a table filter to do sum calculations automatically. We work with merged cells, since one PO can be linked to several invoices.

Somehow the calculation doesn't calculate the merged cells properly, instead it seems to add it up for every line. I think the picture shows the problem:

Table_sum_problem.PNG

The proper sum should be 31.000 but it seems to multiply this number by 3, since there are 3 merged cells?!

Any hints how to fix this?

1 answer

1 vote
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2023

Hi @Matthias Goepfert ,

Such behavior is expected and correct one for the Table Filter macro. Please check the screenshot below:

Thu 9-1.png

The sum for merged cells is not right for the Vertical Totals, but if you count Horizontal Totals the result is correct.

If "31,000" is recognized not in all the cells that were merged but only in the first one, we won't get the "32,000" for our Horizontal Totals. The result will be "32,000", "1,000" and "1,000". And the more merged cells we use, the more mistakes we get.

So, if you can't change the structure of your table, you may use the Table Spreadsheet macro and its cell formulas:

Thu 9-2.png

Hope it helps your case.

Matthias Goepfert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2023

Hey Stiltsoft support

Thanks for your reply.
To be honest I don't see the reason why you would want to merge cells when you expext them to sum up in every row.
But probably that is an academic discussion, or one of different usecases.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events