Solved

Excel Formula

Posted on 2016-07-25
7
41 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 50

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 49

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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 49

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 49

Expert Comment

by:Rgonzo1971
ID: 41729630
Your choice
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel - only show/use data based on dates selected/entered 11 50
Multiple Open Excel Spreadsheets 12 39
populate Excel dropdown via ADO and VBA 6 17
If help 9 45
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
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.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

786 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