Solved

Excel Formula

Posted on 2016-07-25
7
45 Views
Last Modified: 2016-07-29
trying to get the average number ignoring all negative value, data and is in one workbook and the info should be in another.
0
Comment
Question by:Jorge Ocampo
  • 3
  • 3
7 Comments
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41728694
try use AVERAGEIF or AVERAGEIFS functions:

example:
=AVERAGEIF(D2:D12,">0",D2:D12)

Open in new window

try change the range accordingly.

more info:

How to calculate average in Excel - formula examples of AVERAGE, AVERAGEIF, AVERAGEIFS
https://www.ablebits.com/office-addins-blog/2015/08/28/excel-average-averageif/
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41728820
Hi,

since the question does not exclude 0s

then try
=AVERAGEIF(D2:D12,">=0",D2:D12)

Open in new window

Regards
0
 
LVL 2

Author Comment

by:Jorge Ocampo
ID: 41729443
that part i got but what about getting the info from a different sheet for example data is in sheet1 but i am trying to display data in sheet2?
0
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!

 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41729554
then try in sheet2

=AVERAGEIF(Sheet1!D2:D12,">=0",Sheet1!D2:D12)
0
 
LVL 2

Author Comment

by:Jorge Ocampo
ID: 41729614
so it avoids any negative numbers?
0
 
LVL 2

Author Comment

by:Jorge Ocampo
ID: 41729626
i had to do this ">0" since this ">=0 gave me wrong information
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41729630
Your choice
0

Featured Post

Industry Leaders: 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 While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

733 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