Forum Discussion
Unable to get cells with % Formulas to add up to100% but yet the Sum Total in the cell shows 100%
Excel calculates 100 % correctly
Can you change the example so that your problem can be understood.
- Susan2021-10-26May 28, 2024Copper Contributor
dscheikey Here is a quick view of the excel chart - The total % of Responses manually adds up to 99%
- dscheikeyMay 28, 2024Bronze Contributor
This is a normal rounding problem. If you set the rounding to 3 decimal places, you will also get 100,000 when adding the displayed values. With one decimal place 99.9 and with 2 decimal places 100.1.
You will not be able to solve this without "incorrectly rounding" one of the values.
- dscheikeyMay 30, 2024Bronze Contributor
Hello Susanne, I didn't want to leave you alone with my short answer.
I have written a user-defined LAMBDA function that does the "wrong" rounding for you.
I must warn you! This is not mathematically correct!!! The rounding rules are actually clear.
The function is intended to correct the dilemma that a sum of previously rounded numbers often does not correspond to the sum rounded afterwards. In this function, if necessary, a number that would otherwise not be rounded up or down is rounded to equalise the sum. The number(s) used is/are the closest to the number(s) that have not been rounded up or down.
=SROUND(array, decimal places)You can try out the function in the enclosed worksheet. If you like it, you only have to copy the lambda part into your worksheet in the name manager.
Formula see next Answer!
As I had to save space, there are no "speaking" designations here.
See also my example! Example see next Answer!
Good luck!