SUMIF function #VALUE! error links

G

Guest

I'm trying to perform a SUMIF function in one workbook (destination) using
some cells in another workbook (source). It only works if I have the source
workbook open. If it's not open, I get a #VALUE! error in the SUMIF cell of
the destination workbook. Any suggestions?
 
G

Guest

Thanks. How do I convert the folling SUMIF to a SUMPRODUCT?

=SUMIF('SourceFile'!$D$9:$D$5000,$B9,'SourceFile'!$G$9$G5000)

GB
 
D

Dave Peterson

=SUMproduct(--('SourceFile'!$D$9:$D$5000=$B9),'SourceFile'!$G$9$G5000)

But this points at another worksheet in the same workbook--not a different
worksheet in another workbook.
 
G

Guest

Dave, thanks. That worked perfectly. On your pointing statement, Cell $B9
(in the below formula) is in the "destination file", while Cells $D$9:$D$5000
and $G$9:$G5000 are in the "source file". Sorry for any confusions.

Finally, what's the purpose of the "--" at the beginning of the SUMPRODUCT
function? Just curious.

Thanks again,

GB
 

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

Top