Forum Discussion

null null's avatar
null null
Copper Contributor
Mar 19, 2018

Formula to calculate % variance

Good Morning,

 

It is more a mathematical question than an excel related question but I can't figure it out by my own...

I have 20% in a cell A1, 15% in B1 I want to show the difference between the 2 in points. What will be the formula as to show in C1 +5pp ??

 

Thank you for your help

 

  • Nope, copy/paste like this doesn't work. In custom format box you type #" pp", after that press Ctrl and hit J, release Ctrl and type %

    Combination Ctrl+J adds non-printable character which force carriage return into the string. It looks like this

    % will be invisible here since it's on another line.

    If uncheck Wrap Text in cell formatting you'll % within the line, with Wrap Text it's invisible since on another line within the cell

     

     

  • Jamil's avatar
    Jamil
    Bronze Contributor

    in C1 you can put formula like this

     

    =TEXT((A1-B1)*100,"Generalpp")

    • null null's avatar
      null null
      Copper Contributor

      Thanks but I can't make it work it shows the #value error message. I'll keep trying Thanks!

    • null null's avatar
      null null
      Copper Contributor

      Trying this one without success.

      Do I have to copy paste the #"pp"<ctrl+J>% in custom format ? If yes I can't make it work ...

      Thanks for your help

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        Nope, copy/paste like this doesn't work. In custom format box you type #" pp", after that press Ctrl and hit J, release Ctrl and type %

        Combination Ctrl+J adds non-printable character which force carriage return into the string. It looks like this

        % will be invisible here since it's on another line.

        If uncheck Wrap Text in cell formatting you'll % within the line, with Wrap Text it's invisible since on another line within the cell

         

         

  • Jamil's avatar
    Jamil
    Bronze Contributor
    Did you try my solution =TEXT((A1-B1)*100,"Generalpp")

    it will not give you an error

Resources