LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumif formula returning #VALUE when source worksheet is not op

Well, you are obviously using XL2007, so you can use full-column
references with SUMPRODUCT. The formula you quote implies that
Book1.xlsx is open, because otherwise you would have the full path in
front of the filename. It is better to start in this situation, and
then when you close Book1.xlsx Excel will insert the full path for
you. So here is a replacement formula:

=SUMPRODUCT(--([Book1.xlsx]Sheet1!$A:$A=A1),[Book1.xlsx]Sheet1!$B:$B)

Then when you close Book1.xlsx this formula will expand to include the
full path.

However, you might find that this takes a long time to calculate,
given the number of cells in a full column. If you only have 300 cells
of data, say, then it would be more efficient to use specific ranges,
like this:

=SUMPRODUCT(--([Book1.xlsx]Sheet1!$A$1:$A$300=A1),[Book1.xlsx]Sheet1!$B
$1:$B$300)

Hope this helps.

Pete

On Jan 28, 1:53*pm, Gillian wrote:
Hi
thanks
the formula I have is
=SUMIF([Book1.xlsx]Sheet1!$A:$A,A1,[Book1.xlsx]Sheet1!$B:$B)

I've not used sumproduct before
thanks for your help

--
GJ



"Pete_UK" wrote:
SUMIF doesn't work with closed workbooks - try using SUMPRODUCT
instead.


If you need help to convert the formula then post what you have here.


Hope this helps.


Pete


On Jan 28, 12:09 pm, Gillian
wrote:
Hi,
In Workbook1 have a sumif formula which is summing data from Workbook 2.
When Workbook 2 is open the formula works fine. When Workbook 2 is closed
the formula returns #VALUE error.
Can you help?
thanks


--
GJ- Hide quoted text -


- Show quoted text -




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Formula Returning Sum of a Series monir Excel Worksheet Functions 26 July 6th 08 11:28 AM
SUMIF and #VALUE! when source is closed? NeedToKnow Excel Worksheet Functions 4 February 14th 08 06:03 PM
view source worksheet when entering formula JT Setting up and Configuration of Excel 3 March 22nd 07 01:09 AM
Formula returning the worksheet name dminkov Excel Discussion (Misc queries) 4 June 30th 06 03:26 PM
SUMIF Returns a #VALUE error when external source is closed ghynes Excel Worksheet Functions 7 November 17th 05 01:27 PM


All times are GMT +1. The time now is 08:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"