Difference between positive negative (any variation)

roondog248

New Member
Joined
Aug 21, 2014
Messages
7
ScoreYards/PointYards / Play
OffenseDefense+/-OffenseDefense+/-OffenseDefense+/-
Chicago Bears23.025.0-2.015.214.90.35.36.2-0.9
182121151818212831
Carolina Panthers18.324.0-5.818.015.62.45.36.0-0.6
281727271421232325
----->3.8
----->​
2.10.2

<colgroup><col style="width: 75px"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"><col width="75"></colgroup><tbody>
</tbody>



All the metrics under Offense & Defense are the result of a vlookup formula, so they change everytime depending on the team.
In the +/- column, (difference between the differences) both of the numbers will sometimes be positive, sometimes negative, sometimes positive & negative.

As you can see, the number (in red) in the H column is incorrect.
I need help figuring out a formula that will retain all the rules for subtracting positive, negatives (every variation)
Any help would be greatly appreciated.
 
you're right, that formula is inaccurate.
I'm not sure what you want me to explain.
i'm looking for the formula to find the difference between the two numbers, whether that is positives - negatives, negatives - negatives, positives - positives.
With all due respect, I think those rules are common knowledge.

I will have to adjust those flaws late on today after work.

-2; -3 ===> x

-2; 3 ===> y

2; -3 ===> z

2; 3 ===> w

Would you please fill in the common knowledge that is missing: What values do x, y, z, and w should take?
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
It seems that there are only 4 possibilities to find a "difference" that do not result in all positive or all negative numbers. In the example below the two numbers from which the "difference" ar in columns A & B.

-2-3 -11-1-5
23 1-1-11
23 1-1-11
2-3 -55-5-1

<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>

The 4 formulas are: =B1-A1
=A1-B1
=MIN(A1:B1)-(MAX(A1:B1))
=MAX(A1:B1)-ABS(MIN(A1:B1))

Perhaps one of the latter 2 meets your needs
 
Upvote 0
using your example in post #3,

-4.309.80 14.1
-6.40-6.90 0.5
0.07-0.01 0.08
0.302.10 1.8

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

formula seems to be: =IF(B6>A6,B6-A6,A6-B6)
 
Upvote 0
Yeah, it turns out that I was making this way more complicated that it actually needed to be.
I was getting so confused because some of the stats are 'higher the better', some 'lower the better'

E.g. Yards Per Point = lower the better.

Yards Per Play = higher the better.

The google docs sheet knows what to do when a negative is subtracted from a positive, negative minus a negative...and so on.


So, Higher The Better is =Max() - MIN()
Lower The Better is =Min() - Max()

 
Upvote 0

Forum statistics

Threads
1,216,419
Messages
6,130,515
Members
449,585
Latest member
kennysmith1

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