I have a dataset similar to this, but really extensive:
| Row | Levels | Level 1 | Size | Department |
|---|---|---|---|---|
| 1 | 1 | AA | 2.0 | Dept 1 |
| 2 | 2 | AA | 0.8 | Dept 1 |
| 3 | 3 | AA | 1.5 | Dept 1 |
| 4 | 2 | BB | 3.0 | Dept 1 |
| 5 | 3 | BB | 2.0 | Dept 1 |
| 6 | 3 | BB | 2.5 | Dept 2 |
| 7 | 2 | CC | 5.0 | Dept 2 |
| 8 | 3 | CC | 1.5 | Dept 2 |
| 9 | 3 | DD | 0.5 | Dept 2 |
| 10 | 3 | DD | 3.0 | Dept 2 |
| 11 | 2 | EE | 4.0 | Dept 2 |
| 12 | 3 | EE | 2.0 | Dept 2 |
What I need is to achieve a total size per Department, however I want to sum only the first match per Level 1, i.e.:
Department 1 would be 2.0 (row 1) + 3.0 (row 4) = 5.0
Department 2 would be 2.5 (row 6) + 5.0 (row 7) + 0.5 (row 9) + 4.0 (row 11) = 12.0
Does anyone have any idea how to accomplish this in Excel?



