I am working on transferring an excel spreadsheet to Google sheets.
The spreadsheet is required to search through 10 sheets (labelled round1, round2, round3 and so on) looking for instances of a persons name and then sum together their totals.
The excel formula was:
=SUMPRODUCT(SUMIF(INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!A:A"),$C2,INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!B:B")))
Following the convention SUMIF(range,condition,range) I've used the following in Google sheets:
=SUMIF({Round1!A2:A,Round2!A2:A,Round3!A2:A,Round4!A2:A,Round5!A2:A,Round6!A2:A,Round7!A2:A,Round8!A2:A,Round9!A2:A,Round10!A2:A},A2,{Round1!M2:M,Round2!M2:M,Round3!M2:M,Round4!M2:M,Round5!M2:M,Round6!M2:M,Round7!M2:M,Round8!M2:M,Round9!M2:M,Round10!M2:M})
But I am getting an error. I suspect I am missing something really simple?