Forum Discussion
Using AVERAGEIF to calculate cells > 0
- Aug 26, 2022
AVERAGEIF won't work, for it expects a contiguous range.
You might use formulas to place the values that you want to average together in a contiguous range.
Otherwise, you have to use rather tricky formulas such as
=AVERAGE(IF((AH7:AH11>0)*ISODD(ROW(AH7:AH11)),AH7:AH11))
(If you don't have Microsoft 365 or Office 2021, you probably have to confirm the formula with Ctrl+Shift+Enter)
AVERAGEIF won't work, for it expects a contiguous range.
You might use formulas to place the values that you want to average together in a contiguous range.
Otherwise, you have to use rather tricky formulas such as
=AVERAGE(IF((AH7:AH11>0)*ISODD(ROW(AH7:AH11)),AH7:AH11))
(If you don't have Microsoft 365 or Office 2021, you probably have to confirm the formula with Ctrl+Shift+Enter)
Thanks Hans