I'm very new to Google Sheets.
I have a sheet where I record the outcomes of games played.
- Each row represents a single game
- Column A,
Map, stores the name of the map that was played. - Column D,
Result, contains either Win, Loss, or Tie.
Sample Data
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Map | Result | ||
| 2 | Mirage | 10/13 | 15/3/14 | Loss |
| 3 | Nuke | 113:7 | 18/1/13 | Win |
| 4 | Inferno | 13:10 | 18/3/17 | Win |
| 5 | Mirage | 116:12 | 13/3/23 | Win |
| 6 | Mirage | 115:15 | 13/5/22 | Tie |
| 7 | Inferno | 1:9 | 23/8/22 | Loss |
| 8 | Vertigo | 17:13 | 6/1/9 | Loss |
| 9 | Nuke | 113:7 | 15/6/16 | Win |
| 10 | Inferno | 13:10 | 9/6/18 | Win |
| 11 | Vertigo | 116:14 | 24/21/5 | Win |
| 12 | Overpass | 13:11 | 18/14/2 | Win |
| 13 | Mirage | 8:13 | 14/15/2 | Loss |
Count by Result
I created a formula using COUNTIF that returns the total count based on the Result (outcome) entered in the cell above it.
=COUNTIF($D$2:$D$13, G$1)- formula is in
G2and was also copied toH2andI2
| F | G | H | I | |
|---|---|---|---|---|
| 1 | MAP | WIN | LOSS | TIE |
| 2 | All | 7 | 4 | 1 |
Count by Result and by Map
Similar to my formula above, I'd like to return the total count but by Map. For example, if the Map is Mirage then the total wins, losses, and ties across all games played on the Mirage map only.
How can I do that?
Desired Results
| F | G | H | I | |
|---|---|---|---|---|
| 1 | MAP | WIN | LOSS | TIE |
| 2 | All | 7 | 4 | 1 |
| 3 | ||||
| 4 | Mirage | 1 | 2 | 1 |
| 5 | Overpass | 1 | 0 | 0 |
| 6 | Vertigo | 1 | 1 | 0 |
| 7 | Inferno | 2 | 1 | 0 |
| 8 | Nuke | 2 | 0 | 0 |












