Solved

I need an excel formula

Posted on 2011-09-30
4
169 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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

680 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