Solved

I need an excel formula

Posted on 2011-09-30
171 Views
I need an excel formula to average values in column A only if they are equal to or greater than 1.

I tried the following but it seems that its not correctly averaging if there a negative values.

=average(A:A>=1,A:A). See attached.
9-30-11.xlsx
0
Question by:wrt1mea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

LVL 50

Accepted Solution

barry houdini earned 250 total points
ID: 36891915
In Excel 2007 and later you can use AVERAGEIF, i.e.

=AVERAGEIF(A:A,">=1")

regards, barry
0

LVL 1

Author Comment

ID: 36891946
Barry you are the man...as always you came through
0

LVL 50

Expert Comment

ID: 36891948
See attached, also includes this formula to give the same result

=AVERAGE(IF(A1:A100>=1,A1:A100))

which is an array formula which needs to be confirmed with CTRL+SHIFT+ENTER

You'd need that to be compatible with Excel 2003 and earlier versions

regards, barry
27373868.xlsx
0

LVL 1

Author Closing Comment

ID: 36891954
Perfect!
0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Suggested Courses
Course of the Month5 days, 17 hours left to enroll