Sample Data
This table shows names of students in column A and their test scores in column B.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Alice |
| B4 | 78 |
| A5 | Charlie |
| B5 | 92 |
| A6 | Bob |
| B6 | 88 |
| A7 | Alice |
| B7 | 95 |
This table shows names of students in column A and their test scores in column B.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Alice |
| B4 | 78 |
| A5 | Charlie |
| B5 | 92 |
| A6 | Bob |
| B6 | 88 |
| A7 | Alice |
| B7 | 95 |
=AVERAGEIF(A2:A7, "Alice", B2:B7)A B 1 |Name |Score 2 |Alice | 85 3 |Bob | 90 4 |Alice | 78 5 |Charlie| 92 6 |Bob | 88 7 |Alice | 95 Formula references: - A2:A7 for criteria range - B2:B7 for average range
A B C 1 |Name |Score | Result 2 |Alice | 85 | 86 3 |Bob | 90 | 4 |Alice | 78 | 5 |Charlie| 92 | 6 |Bob | 88 | 7 |Alice | 95 |
AVERAGEIF function do in Google Sheets?AVERAGEIFS in Google Sheets?A1:A5 = {10, 20, 30, 40, 50}B1:B5 = {"Yes", "No", "Yes", "No", "Yes"}=AVERAGEIF(B1:B5, "Yes", A1:A5)?=AVERAGEIFS(A1:A5, B1:B5, ">20", C1:C5, "Yes")Sales (A2:A7): {100, 200, 150, 300, 250, 400}Region (B2:B7): {"East", "West", "East", "West", "East", "West"}Status (C2:C7): {"Complete", "Complete", "Pending", "Complete", "Pending", "Complete"}Pass the test and this pattern moves unknown