Solved

Excel Formula

Posted on 2016-07-25
7
36 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 49

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 48

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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 48

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 48

Expert Comment

by:Rgonzo1971
ID: 41729630
Your choice
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel - Row Height +1 VBA 2 24
Thanks for the advise, but... 4 24
TT Master Button 18 22
EXCEL formula help required 3 15
What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now