Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default summing a range in a closed file

Hi.

I have a user who would like to be able to sum a range in
a closed file. That in itself is possible, but it's a
fiscal application, and he would like to be able to tell
it how many months to sum, in a YTD manner... 1 for Jan, 2
for Feb, etc.

In order to directly sum the 12 month range (in the closed
file), the formula below works:

=SUM('H:\PROJECTS\OVERHEAD_BUDGETS\Excel_Sheets\[ENG 2004
BUDGET.XLS]120'!$J3:U3)

In order to try to make the number of columns flexible
(j3:j3 for Jan, j3:k3 for Feb, etc.), I did this:

=SUM(OFFSET('[ENG 2004 BUDGET.XLS]120'!$J3,0,0,1,VLOOKUP
(rgMonth,tblMonth,2,0)))

where rgMonth receives the month name, and tblMonth lets
it calc a lookup for the number of columns to sum.

That works, when the external file is open. However, if
the external file is not open, the receiving file stops to
ask if you want to update links (at this time, you can see
that the correct numbers appear on the screen), but when
you tell it not to update the links, it goes to #VALUE.

I just discovered that if I use a third file, which links
to the second file, which links to the original file, this
third file will keep the number when told not to update
links. But that's awfully roundabout.

It appears to be the 'offset' function that is causing the
cells to go to #VALUE, even when told not to update the
links.

Can anyone suggest a formula (it will go into many cells)
that would be able to retain the linked data, without
updating the links?

Thanks.
Mark




Reply
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
Summing a range of cells based on criteria in another range Jack Excel Worksheet Functions 2 November 5th 09 01:46 AM
Help - Does value exist in range of CLOSED workbook? c mateland Excel Worksheet Functions 9 April 16th 07 06:53 PM
Excel is not asking to save a changed file when the file is closed Ron Excel Discussion (Misc queries) 2 March 14th 05 01:05 AM
VBA - on a button event, open another closed file, post changes, close file Fio Excel Programming 0 March 1st 04 01:08 PM
Problem with named Range in ADO extract from Closed Excel File Dave Bash Excel Programming 1 December 23rd 03 09:10 AM


All times are GMT +1. The time now is 08:45 PM.

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

About Us

"It's about Microsoft Excel"