Error with SUMIF but not SUM(IF)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me why I get an error (#VALUE) with
=SUMIF('C:\[doc.xls]sheet'!$M$4:$M$1000,"page",'C:\[doc.xls]sheet'!$G$4:$G$1000)

and when I use this I get correct answer :
{=SUM(IF('C:\[doc.xls]sheet'!$M$4:$M$1000="page",'C:\[doc.xls]sheet'!$G$4:$G$1000))}

Is SUMIF not able to work on multiple workbooks?
 
SUMIF won't work on external workbook links if those external workbooks are
not open when the calculation is done.

Neither SUM nor IF is subject to this constraint.

Dave
 
They both work for me provided the second file is open.
I used
=SUMIF([junk4.xls]Sheet1!A1:A4,"a",[junk4.xls]Sheet1!B1:B4)
and
{=SUM(IF([junk4.xls]Sheet1!A1:A4="a",[junk4.xls]Sheet1!B1:B4))}

best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top