Yep. Bad testing.
I hit F2 and enter with the workbook closed and the value didn't change. I
assumed (wrongly) that it would recalc.
I like your =sumproduct() formula more and more!
But you could use an array formula, too:
=SUM(IF('C:\My Documents\excel\[book1.xls]Sheet1'!$A$1:$A$25="food city",
'C:\My Documents\excel\[book1.xls]Sheet1'!$B$1:$B$25))
(all one cell)
But instead of just hitting enter, hit ctrl-shift-enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)
(But I don't see a significant difference between the two formulas--the two that
work that is <bg>.)
===
And I should have known better--there was a similar question recently that I got
right (the first time!).
David said:
Dave Peterson wrote
This worked ok for me:
=SUMIF([book1.xls]Sheet1!$A$1:$A$25,"food
city",[book1.xls]Sheet1!$B$1:$B$25)
Oops! Results in #VALUE if "book1.xls" not open. Mine worked if source book
was closed.