Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Coorect way to average

Posted on 2014-07-21
Medium Priority
79 Views
Folks,
In A1:A10 there are 8 values (2,4,6,8,10,12,14,16) and 2 cells with zero in each.
The average should be 9. The average I'm getting is 7.2. How does one average with zero value(s) that you do no want to be included in the average
0
Question by:Frank Freese
[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
• 3
• 3
• 2
• +1

LVL 12

Expert Comment

ID: 40210391
Try this -

=AVERAGEIF(A1:A10,">0")
0

LVL 29

Accepted Solution

chilternPC earned 2000 total points
ID: 40210393
you can use

=AVERAGEIF( A1:A10 , "<>0")
0

LVL 29

Expert Comment

ID: 40210394
duttcom you beat me by 1.20 :-(  but mine allows for not zero i.e. minus ;-)
0

LVL 97

Expert Comment

ID: 40210396
If the cells are mathematically and legitimately zero then the average is 7.2. That is just standard mathematics.

If the cells are not relevant and just there then the formula provided above is what you need.
0

LVL 12

Expert Comment

ID: 40210397
Ah- but you used "<>0" which is more correct if there are going to be negative values!
0

Author Comment

ID: 40210422
John,
You'd be correct if zero was part of the data stream. In this instance zero simply means that there was nothing in a particular month which would not would not be out of the ordinary.
I'd forgot that a negative value needs to be included. Although duttcome had a great solution, I'm going to go with chilternPC on this one.
0

Author Closing Comment

ID: 40210424
thanks to all
0

LVL 12

Expert Comment

ID: 40210428
No assist points? Oh well...
0

Author Comment

ID: 40210437
Assist point? Did not know we could give assist points. I do now - thanks for letting me know.
0

## Featured Post

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst youâ€™ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to dâ€¦
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are â€¦
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â€¦
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to usâ€¦
###### Suggested Courses
Course of the Month8 days, 6 hours left to enroll

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

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