Share via

How to calculate a difference between 2 numbers in Excel and display the result as either a positive or negative

Anonymous
2020-04-27T14:39:46+00:00

How can I calculate and format the difference between 2 numbers in Excel?  I want to show the difference as either an 'increase' (positive) or a 'decrease' (as a negative, displayed with a minus sign prior to the number, e.g. -5; to show a downward movement in the score).  In cell a3 is the 'before' number, e.g. 20.  In cell b3, is the 'after' number, e.g. 15.  I want to calculate the difference between these 2 numbers.  I was proposing to use an 'IF' statement to calculate the difference.  

I also want to show the difference (movement of current risk score) as follows:

If the 'risk score before' is greater than the 'risk score after', then show the 'difference' as a 'negative' (preceded with a minus).

If the 'risk score before' is less than the 'risk score after', then show the difference as a 'positive'.

If the 'risk score before' is equal to the 'risk score after', then display 'no movement' (or leave blank) as the 'difference' 

Thanking you in anticipation.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2020-04-30T12:57:47+00:00

Hi Sarah

The videos and the link below would help you with your last request, and probably give you more ideas for future projects.

Regards

Jeovany

https://exceljet.net/custom-number-formats

VIDEOS

https://www.youtube.com/watch?v=tGY70sdpaLc

https://www.youtube.com/watch?v=faPSXNkU1Y0

https://www.youtube.com/watch?v=68Tet_8BNB8

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-04-27T14:50:27+00:00

    In C3 put in this formula.

      =B3-A3

    With C2 still selected, tap Ctrl+1 and go to the Numbers tab. Choose Custom from the list down the left and supply the following for the Type;

    0;-0;"No movement";

    Now double click the small Fill Handle in the lower right corner of C3. This should populate the formula down as far as there are values in column B.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-05-10T09:17:51+00:00

    Thank you so much for pointing me in the direction of these videos - they are so helpful.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-04-30T12:03:24+00:00

    Thank you so much for your help in solving my query.  

    Would it be possible to explain the solution please?  

    I haven't used the 'Custom' format cells option in this way before.  Is this similar to using an 'If' Function?

    Can it be used in other ways?

    Many thanks.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments