calculate the signed difference

flyngcoln

New Member
Joined
Nov 10, 2017
Messages
8
Hi,
I'm trying to calculate the signed difference between two numbers.

I'm wanting to show if the range between two numbers is positive and negative.

Evertime I calculate the difference between two numbers it always shows up as positive, even if the second number is less than the first.

For e.g.

55%
18%
diff: 37%, but I want it to show that it is -37%

Is there a formula that will adapt depending on whether the second number is bigger or smaller than the first?
Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Maybe someone has a better solution, but this is what I came up with.

=(A1-A2)*100&"%"&IF(A1>A2," decrease"," increase")
 
Upvote 0
Thank you dreid1011 - I'll see if yours works for me too, thanks!

You're welcome. I may have misunderstood though. I thought you wanted it to display the text "increase" or "decrease". If not, CJ_22's suggestion looks like it does what you want. Just format the result cell as percent.

And are you sure /2 gives you the desired result? With 55% (old) and 18% (new): (18-55)/2 returns -.185. Using /1 would return -.37 as I expect that is what you want? If not, please disregard.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top