Search code examples
excelexcel-formulaformula

Subtract percentage from percentage and avoid 0 value and decimals Excel formula


enter image description here I need to find a formula to make value of M13 = (100% - (K13+K14))
The expected output to be 82 ,but because I rounded up K13 to avoid 0 percentage, then now value of M13= 83%
and that is wrong, as sum of (M13+K13+K14) should be 100%
greatly appreciate your help.


Solution

  • You can roundup your number as a formula. This way, it will work for any two input numbers.

    On this solution, the formula on K14 becomes =ROUNDUP(J14/J15,2) The "2" means two decimals -- which is zero decimals in percentage notation.

    Then you can use your formula on M13 normally: =100%-(SUM(K13:K14))