Solved

I need an excel formula

Posted on 2011-09-30
4
171 Views
Last Modified: 2012-05-12
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
Comment
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
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 50

Accepted Solution

by:
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

by:wrt1mea
ID: 36891946
Barry you are the man...as always you came through
0
 
LVL 50

Expert Comment

by:barry houdini
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

by:wrt1mea
ID: 36891954
Perfect!
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question