# Excel Magic Trick 1117: Calculate Average For Each Sample: AVERAGEIFS, PivotTable, or OFFSET

17
24

See how to calculate an average for 12 different samples when numbers are in a single column:
1. (00:25 min) PivotTable (average in one condition/criteria)
2. (02:22 min) AVERAGEIFS Function (average in one condition/criteria)
3. (05:37 min) AVERAGE, ROWS and OFFSET functions (average formula that will use a dynamic range that points to the first three rows, then the next three, then the next three, etc.)

1. Can I get it for multiple orders with different quantity..?

2. Hi there! Regarding part3. (05:37 min) AVERAGE, ROWS and OFFSET functions -> 1. Why do we put parenthesis in front of rows i.e =(rows(\$J\$5:J5)-1)*3+1 and not =rows((\$J\$5:J5)-1)*3+1. Can you please explain?

3. what to do if some samples aren't assigned any number at all? it shows #DIV/0!
in my case

4. hey very useleful video, for the offset method, can the reference point be the first point of the range?

5. so much helpful!!!!!!!!!!!! you saved me!!!!!!!!!!!

6. This is excellent. Thank you. How does a pivot handle text that appears in a column when is its calculating an average?

7. Dude! You saved my bacon at my work. First round of beers is on me.

8. thnx 4 da info on pivot table averagez

9. One other option comes to mind, using the SUMPRODUCT function:

=ROUND(SUMPRODUCT(–(Sample=S5),Number)/SUMPRODUCT(–(Sample=S5)),1), where S5 contains the sample values: 1,2,3,… .

10. Excellsfun.. Is it possible to send you a PM if I have a question about an excel problem I've got?
I can't figure it out. Not even by watching your vids, even though I came close.

11. Great lessons!! awesome video!!! thank you!

12. Great lesson. Thanks a lot . You're so useful.

13. Nice video. Many things to learn from you

14. Excel Magic Trick 1117: Calculate Average For Each Sample: AVERAGEIFS, PivotTable, or OFFSET