Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

SUMPRODUCT to calculate data from a closed workbook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GTVT06 - 06 Jul 2007 13:01 GMT
Hello,
Is any one able to help me figure out what I'm doing wrong?
When I do a sumproduct on a closed workbook for the exact number of
rows it works, but when I re-write the formula to include even one
additional row (1 row of blank data) it will give me a #REF! error
unless the workbook is open. The reason why I want to include blank
rows is because the rows can vary from day to day, and the sumproduct
cant include a N:N type of selection.
Here's some examples.

I currently have exactly 1086 rows of data, so this formula works with
the workbook closed
{=SUMPRODUCT(--('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$R$2:$R
$1086="KC")*('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$M$2:$M
$1086="ABS   ")*('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$N$2:$N
$1086<>""),--('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$N$2:$N$1086))/
60}

But when I add additional rows to the formula I get a #REF! error. In
the example below it's the exact same formula as above but instead of
the data ranges ending on row 1086 I have them ending on row 2086. I'm
also entering them as array formulas.
{=SUMPRODUCT(--('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$R$2:$R
$2086="KC")*('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$M$2:$M
$2086="ABS   ")*('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$N$2:$N
$2086<>""),--('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$N$2:$N$2086))/
60}
Roger Govier - 06 Jul 2007 13:22 GMT
Hi

You need to go to Edit>Links>Open source then close your source book.
Then save the destination book and the links will be fine

You are missing a closing quote between Spreadsheet and ! in each part
of the formula.
The formula does not need to be array entered.

Signature

Regards

Roger Govier

> Hello,
> Is any one able to help me figure out what I'm doing wrong?
[quoted text clipped - 23 lines]
> $2086<>""),--('C:\LongPath\[SpreadSheet.csv]SpreadSheet!$N$2:$N$2086))/
> 60}
GTVT06 - 06 Jul 2007 13:52 GMT
But you would also have to Edit>Links>Open source every time any
changes are made and I was trying to prevent having to open any other
external workbooks. Edit>Links>Open source will also work for Sum(if's
but I thought Sumproduct was supposed to update and calculate from
external workbooks without having to open them in any type of way. I
was thinking it was something else since Sumproduct works just fine as
long as I have the exact number of rows in the formula that include
data.
Roger Govier - 06 Jul 2007 13:59 GMT
Hi

No, I am saying set your range with 1000 extra rows.
Then choose Edit links, open source, close source, save destination
file.
You won't have to go through the same procedure, unless you change the
number of rows again in your formula.

Signature

Regards

Roger Govier

> But you would also have to Edit>Links>Open source every time any
> changes are made and I was trying to prevent having to open any other
[quoted text clipped - 4 lines]
> long as I have the exact number of rows in the formula that include
> data.
GTVT06 - 06 Jul 2007 14:13 GMT
Got it. Thanks, I figured out it wasn't working in csv format so I had
to save as xls and it worked like a charm. Thanks for your help!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.