Link to home
Start Free TrialLog in
Avatar of Jorge Ocampo
Jorge OcampoFlag for United States of America

asked on

Excel Formula

trying to get the average number ignoring all negative value, data and is in one workbook and the info should be in another.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rgonzo1971
Rgonzo1971

Hi,

since the question does not exclude 0s

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

Open in new window

Regards
Avatar of Jorge Ocampo

ASKER

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?
then try in sheet2

=AVERAGEIF(Sheet1!D2:D12,">=0",Sheet1!D2:D12)
so it avoids any negative numbers?
i had to do this ">0" since this ">=0 gave me wrong information
Your choice