Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Formula Returning Sum of a Series | Excel Worksheet Functions | |||
SUMIF and #VALUE! when source is closed? | Excel Worksheet Functions | |||
view source worksheet when entering formula | Setting up and Configuration of Excel | |||
Formula returning the worksheet name | Excel Discussion (Misc queries) | |||
SUMIF Returns a #VALUE error when external source is closed | Excel Worksheet Functions |