Variance in margin percents - formula applying to all +/- percents

anotherera

New Member
Joined
Jan 5, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,
First post as this is the first time I cannot find a solution to an excel query.
I am creating a margin report covering many years and attempting to show variance between margin percentages. As this included both positive and negative margins I am unable to locate a single formula which applies to all possible combinations. In essence, I am trying to add a single formula in MANY cells showing the variance without editing if, for example, one year has positive margin and the other negative.
So far I know:
=(A1-B1)/B1 works for +/+
=(A1-B1/ABS(B1) works for -/-
But I am unsure what to use for +/- and more so what formula can be used which works for ALL of the possibilities.
Any ideas?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
you could try :
Excel Formula:
=SQRT((A1-B1)*(A1-B1)/(B1*B1))
which will always gvie you a positive result
 
Upvote 0
@offthelip Many thanks for the input. Likely due to my poor explanation I am looking for a solution which shows both positive and negative results depending on the data. For example:
-2021 sales 715 units
-2020 sales 758 units
-Should show negative % result

-2019 sales 1000 units
-2018 sales 500 units
-Should show positive % result

Forgive me if this is obvious, but for something so seemingly simple I cannot find a solution. But there must be one.
 
Upvote 0
your equation:
Excel Formula:
=(A1-B1/ABS(B1)
will work for the examples you have give
 
Upvote 0
My mistake, I was asking about examples I already solved using the same tactic you laid out. The ones giving me issues are these.

Year to
Date
% Increase on 2015% Increase on 2016% increase on 2017% increase on 2018% increase on 2019% increase on 2020
-8,3%
#DIV/0!​
-108%​
-2908%​
-376%​
-277%​
32%​
4,2%
#DIV/0!​
-96%​
1609%​
38%​
-11%​
134%​
-12,2%
#DIV/0!​
-112%​
#DIV/0!​
-563%​
4324%​
4,7%
#DIV/0!​
-95%​
-1797%​
56%​
3,0%
#DIV/0!​
-97%​
-1191%​
-0,3%
#DIV/0!​
-100%​
2,6%
#DIV/0!​
0,0%

The issue is when trying to use a single formula to find the % change between "Year to date" values. So a single formula which can take +/+, +/-, -/+, and -/- percentages and show the change. Any ideas?

(Apologies for asking the wrong question before)
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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