+ Reply to Thread
Results 1 to 7 of 7

Links only update when external workbook is open

Hybrid View

Guest Links only update when... 11-03-2005, 05:15 PM
Guest Re: Links only update when... 11-03-2005, 06:25 PM
Guest Re: Links only update when... 11-07-2005, 08:45 PM
Guest Re: Links only update when... 11-03-2005, 06:35 PM
Guest Re: Links only update when... 11-03-2005, 06:35 PM
Guest Re: Links only update when... 11-03-2005, 06:35 PM
Guest Re: Links only update when... 11-03-2005, 09:30 PM
  1. #1
    Harlan Grove
    Guest

    Re: Links only update when external workbook is open

    CMB wrote...
    ....
    >1. Using the OFFSET function:
    >
    >=SUM(OFFSET('[Daily-Data.xls]Daily'!$F$5,273,0,303,1))

    ....
    > 2. Using the INDEX function:
    >
    >=SUM(INDEX('[Daily-Data.xls]Daily'!$F$5:$F$369,274):
    >INDEX('[Daily-Data.xls]Daily'!$F$5:$F$369,302))

    ....
    >Both of these formulas work fine when the source workbook is open.

    ....

    These two formulas sum different ranges. The OFFSET formula sums
    F278:F580 while the INDEX formula sums F278:F306. Which do you want?

    The short but technical answer is that you're using both OFFSET and
    INDEX to return range references, but external references into closed
    workbooks *NEVER* resolve to range references, rather they're returned
    as arrays.

    You need to use something like the following.

    =SUMPRODUCT('[Daily-Data.xls]Daily'!$F$1:$F$580,
    (ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)>=k)
    *(ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)<=n))

    If you want to sum F278:F580, make it

    =SUMPRODUCT('[Daily-Data.xls]Daily'!$F$1:$F$580,
    (ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)>=278)
    *(ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)<=580))


  2. #2
    CMB
    Guest

    Re: Links only update when external workbook is open

    Thanks! That did the trick. Also, I was trying to sum F278:F306. I just
    had some fat fingers when I typed the OFFSET formula.

    "Harlan Grove" wrote:

    > CMB wrote...
    > ....
    > >1. Using the OFFSET function:
    > >
    > >=SUM(OFFSET('[Daily-Data.xls]Daily'!$F$5,273,0,303,1))

    > ....
    > > 2. Using the INDEX function:
    > >
    > >=SUM(INDEX('[Daily-Data.xls]Daily'!$F$5:$F$369,274):
    > >INDEX('[Daily-Data.xls]Daily'!$F$5:$F$369,302))

    > ....
    > >Both of these formulas work fine when the source workbook is open.

    > ....
    >
    > These two formulas sum different ranges. The OFFSET formula sums
    > F278:F580 while the INDEX formula sums F278:F306. Which do you want?
    >
    > The short but technical answer is that you're using both OFFSET and
    > INDEX to return range references, but external references into closed
    > workbooks *NEVER* resolve to range references, rather they're returned
    > as arrays.
    >
    > You need to use something like the following.
    >
    > =SUMPRODUCT('[Daily-Data.xls]Daily'!$F$1:$F$580,
    > (ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)>=k)
    > *(ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)<=n))
    >
    > If you want to sum F278:F580, make it
    >
    > =SUMPRODUCT('[Daily-Data.xls]Daily'!$F$1:$F$580,
    > (ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)>=278)
    > *(ROW('[Daily-Data.xls]Daily'!$F$1:$F$580)<=580))
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1