Use a criterion cell
=AVERAGEIF(C2:C,"<>0")Put the criterion in H2 so it can be changed without editing the formula.
Average the Amount column while leaving zero values out of the calculation.
Average products without zeros in Google Sheets with =AVERAGEIF(C2:C,"<>0"). Paste it into an empty result cell, then change the ranges or criterion to match your columns.
The <>0 criterion removes zero Amount values from the average. In this worked product table, column A stores product labels, B stores Region, C stores Amount, D stores Date, E stores Status and F stores Notes.
The example uses four rows so you can check the output before applying the formula to a larger products table. Edit any input in the playground and compare the new output with the visible criteria.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Region | Amount | Date | Status | Notes |
| 2 | ||||||
| 3 | ||||||
| 4 | ||||||
| 5 |
=AVERAGEIF(C2:C,"<>0")Put the criterion in H2 so it can be changed without editing the formula.
=AVERAGEIF(C2:C1000,"<>0")Bounded ranges can calculate faster in a large file.
=IFERROR(AVERAGEIF(C2:C,"<>0"),"No matches")Shows readable text instead of an error when the source has no qualifying rows.
Start every referenced range on row 2 and keep their ending rows aligned.
Check spelling, spaces, number formatting and whether dates are stored as real dates.
Add Product non-blank logic when unused rows should be excluded.
Yes. Replace the quoted criterion with a cell reference such as H2.
Yes. Whole-column ranges are convenient; bounded ranges can be faster in a very large spreadsheet.
Check extra spaces, data types, date values and whether every range begins on the same row.
Send this recipe to the SheetSteps assistant and describe how your columns are arranged.