Hi,
At the moment the following line works fine
=SUMIF($A4:$A28,INDIRECT("[File1.xlsx]Sheet1!$A$3"),$C4:$C28)+SUMIF($A4:$A28,INDIRECT("[File1.xlsx]Sheet1!$A$8"),$C4:$C28)
Assuming INDIRECT("[File1.xlsx]Sheet1!$A$3") = Apple and INDIRECT("[File1.xlsx]Sheet1!$A$8") = Orange
Instead of writing the following code
=SUM(SUMIF($A4:$A28,{"Apple","Orange"},$C4:$C28))
whereas I'm going to be flexible any more,
I want to use either INDIRECT or another function which will bring in the two cells from the other file into my SUMIF function.
At the moment the following line works fine
=SUMIF($A4:$A28,INDIRECT("[File1.xlsx]Sheet1!$A$3"),$C4:$C28)+SUMIF($A4:$A28,INDIRECT("[File1.xlsx]Sheet1!$A$8"),$C4:$C28)
Assuming INDIRECT("[File1.xlsx]Sheet1!$A$3") = Apple and INDIRECT("[File1.xlsx]Sheet1!$A$8") = Orange
Instead of writing the following code
=SUM(SUMIF($A4:$A28,{"Apple","Orange"},$C4:$C28))
whereas I'm going to be flexible any more,
I want to use either INDIRECT or another function which will bring in the two cells from the other file into my SUMIF function.