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

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.

Answer
Answer

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

Please,
Consider marking this reply as the answer to your question if it does so.
It will help others in the community with similar problems or questions.
Thank you in advance


Regards
Jeovany CV

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated January 29, 2025 Views 22,532 Applies to: