I want to sum the hours worked by a certain person in a spreadsheet with the following format:
| A | B | C | D | E | ... | S |
| ID | 7 | 8 | 9 | 10 | ... | 24 |
| 123| 23| 32| 0 | 16 | ... | 34 |
| 323| 12| 4 | 5 | 16 | ... | 31 |
| 444| 32| 2 | 0 | 16 | ... | 9 |
| 123| 54| 3 | 0 | 16 | ... | 7 |
The third row is the minutes worked by that ID for that hour. How can I sum all the minutes worked between, say, hours 18 and 23? I've tried using SUMIFS but it throws the "arrays have different sizes" error.
I've spread the hours over columns for performance reasons (there are 5000+) rows in the sheet.
EDIT: the formula that throws the error is
=SUMIFS(G2:S3,A2:A,132)
The first argument includes more than one column which is what throws the standard sumif error. The formula is not the exact formula: I've simplified it, for the purpose of the question it's the same (hence SUMIFS despite using one criteria only).
Edit: Clarified table format