Solved

# Excel Formula

Posted on 2016-07-25
49 Views
trying to get the average number ignoring all negative value, data and is in one workbook and the info should be in another.
0
Question by:Jorge Ocampo
[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
• 3
• 3

LVL 52

Accepted Solution

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

example:
``````=AVERAGEIF(D2:D12,">0",D2:D12)
``````
try change the range accordingly.

How to calculate average in Excel - formula examples of AVERAGE, AVERAGEIF, AVERAGEIFS
0

LVL 51

Expert Comment

ID: 41728820
Hi,

since the question does not exclude 0s

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

LVL 2

Author Comment

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

LVL 51

Expert Comment

ID: 41729554
then try in sheet2

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

LVL 2

Author Comment

ID: 41729614
so it avoids any negative numbers?
0

LVL 2

Author Comment

ID: 41729626
i had to do this ">0" since this ">=0 gave me wrong information
0

LVL 51

Expert Comment

ID: 41729630
0

## Featured Post

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â€¦
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â€¦
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns overâ€¦
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
###### Suggested Courses
Course of the Month8 days, 4 hours left to enroll