monkeylizard
MIS
I need to total the differences between two columns into Over/Under totals. I need to know how far over Column A is than B, when value in column A is > B, and vice versa. I'm not talking about the net difference, but more of an IF logic.
Example:
ColumnA ColumnB
10 5
10 8
4 6
In Row 1, the difference is 5
In Row 2, the difference is 8
In Row 3, the difference is 2 (or -2, depending on perspective)
Because the first 2 have column A values larger than B, I want to put them together in one cell and show 13. I need another total for differences where B>A, so in this case a cell showing 2.
I think I can start with a column C with a formula "=Ax-Bx"
that would give me
Column C
5
8
-2
Then how can I sum the positives and sum the negatives )and multiply by -1 to reverse the sign) separately?
Or is there a simpler way to do this?
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.
Example:
ColumnA ColumnB
10 5
10 8
4 6
In Row 1, the difference is 5
In Row 2, the difference is 8
In Row 3, the difference is 2 (or -2, depending on perspective)
Because the first 2 have column A values larger than B, I want to put them together in one cell and show 13. I need another total for differences where B>A, so in this case a cell showing 2.
I think I can start with a column C with a formula "=Ax-Bx"
that would give me
Column C
5
8
-2
Then how can I sum the positives and sum the negatives )and multiply by -1 to reverse the sign) separately?
Or is there a simpler way to do this?
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.