Average of absolute values greater than 1 or less than -1

1.20      -1.30      0.90      1.00
-2.30      -0.70      2.40      -0.80

I need a formula that will average the absolue values in a table that are either above 1 or below 1. For example, when evaluating the table above, the output would be 1.80 since it would average:

1.20, 1.30, 2.30, and 2.40

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

msibleyAuthor Commented:
To clarify, for the cell references, assume the columns across are A, B, C, D and the rows are 1, 2.
JohnBusiness Consultant (Owner)Commented:
A3 = IF(ABS(A1)>1, ABS(A1), 0)  B3 = IF(ABS(B1),>1, ABS(B1), 0)  and so on.

Make an ABS row for each numerical row  and then average the ABS rows. Values less than 1 become 0.

That should work.
msibleyAuthor Commented:
Create an alternate cell for each cell in the table? The tables I'm working with have 30 columns and 19 rows...
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

JohnBusiness Consultant (Owner)Commented:
You need to store the intermediate value of your calculation. Make a copy of the table in a separate area and do it that way.

I don't know of any way to make calc1, hold the value, calc2, change and hold the value etc. and add it all up.
Saurabh Singh TeotiaCommented:
Use this formula...


Open in new window

Please change the reference basis of your data...

msibleyAuthor Commented:

Interesting math. I can't comprehend it, but it appears to work!

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
or a simpler combination of SUMIF and COUNTIF could be more easy to understand

=(SUMIF(A1:D2,">1",A1:D2)+ABS(SUMIF(A1:D2,"<-1",A1:D2))) / (COUNTIF(A1:D2,">1")+COUNTIF(A1:D2,"<-1"))

Open in new window

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Or this.....


Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saurabh Singh TeotiaCommented:

The logic is simple the first statement acts as a Boolean which is true or false ..Now i multiply that with the next logic where the statement conditions are meet and then add it as one to create a logic of numerator and divided by total number of instances of it which is nothing but basically count..

so =sum/count gives you the average basically what you are looking for..

msibleyAuthor Commented:
sktneer's formula was a bit more elegant in that it requires only 3 cell range changes. Thanks, John, for your input but your replies did not address my request for a formula to do the calculations.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.