Excel AVERAGEIF Function for Values Greater Than 0

The AVERAGEIF function returns the average of the cells of an array that satisfy one or more given criteria, which can be from the same array or a different array. Let’s find out the average greater than 0 using this function.

We’ll use the sample dataset below, containing the Product in column B, the Quantity in column C, and the Average Greater Than 0 in column D.

Dataset to Use AVERAGEIF Function for Values Greater Than 0 in Excel

Steps:

  • Enter the following formula in cell D5:
=AVERAGE(IF(C5:C11<>0, C5:C11))

Insert Formula to Use AVERAGEIF Function for Values Greater Than 0 in Excel

  • Press Enter to return the result.

Final Result to Use AVERAGEIF Function for Values Greater Than 0 in Excel

Read More: Excel AVERAGEIF with ‘Greater Than’ and ‘Less Than’ Criteria


How to Use AVERAGEIF Function Between Two Values

Let’s now use the AVERAGEIF function to find the average between two values in Excel.

Steps:

  • Arrange a dataset like the following image.

  • In cell E5 enter the following formula:
=AVERAGEIFS(D5:D11,C5:C11,">=75",C5:C11,"<=85")

  • Press Enter to return the desired result.

Read More: How to Calculate Average If Number Matches Criteria in Excel


How to Use AVERAGEIF Function for Cells Containing Text

We can also use the AVERAGEIF function to find the average if cell contains the text.

Steps:

  • Arrange a dataset like the following image.

Dataset to Use AVERAGEIF Function for Values Greater Than 0 in Excel

  • In cell D5 enter the following formula:
=AVERAGEIF(B5:B11,"*Desktop*",C5:C11)

Inserting Formula to Use AVERAGEIF Function for Values Greater Than 0 in Excel

  • Press Enter to return the desired result.

Final Result to Use AVERAGEIF Function for Values Greater Than 0 in Excel


How to Use AVERAGEIF Function Between Two Dates in Excel

Finally, let’s use the AVERAGEIF function to find the desired result between two dates.

Steps:

  • Arrange a dataset like the following image.

  • In cell E5 enter the following formula:
=AVERAGEIF(C5:C11,">1/10/2022",D5:D11)

  • Press Enter to return the desired result.


Things to Remember

  • When using formulas, take care to select the desired cells properly, or the results may be incorrect or confusing.
  • When applying this function with text, take care to spell the text exactly like the dataset, or no result will be returned.

Download Practice Workbook


Related Articles


<< Go Back to Excel AVERAGEIF Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Zehad Rian Jim
Zehad Rian Jim

Zehad Rian Jim is a dedicated professional with a BSc. Degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. He's good with Microsoft Office and has written more than 80 helpful articles for ExcelDemy in the last year. Now, he makes fun and easy-to-follow Excel tutorials for YouTube as part of the ExcelDemy Video project. Zehad loves figuring out Excel problems, and his passion for learning new things in Excel shines through in... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo