Find difference between two columns of data

BWMagee

Board Regular
Joined
Feb 18, 2014
Messages
112
In column A I have the following numbers:
1, 4, 7

In column B I have the following numbers:
3, 1, 9

I want to find the average difference between these numbers in the following fashion:
=ABS(A-B)

Eg.
ABS(1-3) = 2
ABS(4-1) = 3
ABS(7-9)= 2

Then:
AVERAGE(2,3,2) = 2.33

However if I were to do this:
=ABS(AVERAGE(A:A)-AVERAGE(B:B))

The result given would be 0.333, which is not what I want.

Is there a formula that will achieve the 2.33 answer that can be used in one cell, not needing to put the ABS(A-B) in a separate column? I ask, because I will need to use this on a much larger data set.
If not, I will create the helper column. Thanks.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Book1
AB
113
241
379
4
52.33
Sheet3
Cell Formulas
RangeFormula
A5A5=AVERAGE(ABS(A1:A3-B1:B3))
 
Upvote 0
Solution
Thanks very much, it works, but has to be entered as an array formula, ctrl + shift + enter, to enclose with curly brackets { }
 
Upvote 0
Happy to help & thanks for the feedback (y) :)
When you get the chance, you night update your account details to show what version of Excel you're using ;)
 
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,181
Members
449,090
Latest member
bes000

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