+ Reply to Thread
Results 1 to 11 of 11

#VALUE! Error, unless source link is opened?

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    5

    Unhappy #VALUE! Error, unless source link is opened?

    Hi, I'm an novice-intermediate Excel user and am experiencing an issue that doesn't make too much sense to me.

    I have a SUMIF formula, with an OFFSET as the last half of the range in order to do a dynamic update each month. The links are correct, the formula works, but when I exit out of the source file and update I'm getting a #VALUE! error. When I open it back up, the formula is back and working perfectly. Any idea why this could be? It's in a shared folder, but I have many other formulas on the same page that link to this file and they don't have this problem.

    Thanks for any help!
    Last edited by tslade12; 06-13-2011 at 08:07 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: #VALUE! Error, unless source link is opened?

    Both SUMIF and OFFSET don't work with closed workbooks, unfortunately.

    If you can describe what the formula is doing, then possibly there could be replacement functions that do work with closed workbooks.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: #VALUE! Error, unless source link is opened?

    Quote Originally Posted by NBVC View Post
    Both SUMIF and OFFSET don't work with closed workbooks, unfortunately.

    If you can describe what the formula is doing, then possibly there could be replacement functions that do work with closed workbooks.
    Ah, then that would be the issue. Thanks. Yes, I'd love to know a good replacement solution. Here is the outline of the formula (and actually I realized it was just SUM, not SUMIF, but same idea):

    =SUM('LINK'!$T$5:OFFSET('LINK'!$T$5,0,Initiation!C13-1))

    Basically, I have a list of numbers (orders) per month horizontally in the source LINK, and through the "initiation" tab in the original worksheet, I can change the accounting period (C13), which adjusts the ending column in the range of the sum (if I'm explaining this correctly). How would I do this with a closed workbook?

    Thanks!
    Last edited by tslade12; 06-13-2011 at 02:50 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: #VALUE! Error, unless source link is opened?

    I thought you had SUMIF in there? SUM() should work, it is just the OFFSET...

    Try:

    =SUM(LINK!$T$5:INDEX(LINK!$5:$5,Initiation!C13-1))
    Last edited by NBVC; 06-13-2011 at 02:59 PM.

  5. #5
    Registered User
    Join Date
    06-13-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: #VALUE! Error, unless source link is opened?

    Quote Originally Posted by NBVC View Post
    I thought you had SUMIF in there? SUM() should work, it is just the OFFSET...

    Try:

    =SUM(LINK!$T$5:INDEX(LINK!$5:$5,Initiation!C13-1))
    I'm still getting a #REF! when I exit out of the source link.

    =SUM(LINK!$T$5:INDEX(LINK!$T$5:$AE$5,1,Initiation!C13))

    It worked, again, when the source was open, but when I closed it I got the #REF! error. Sorry, not sure why this is happening?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: #VALUE! Error, unless source link is opened?

    Are you adding the path at all? It needs the path of the other workbook.

  7. #7
    Registered User
    Join Date
    06-13-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: #VALUE! Error, unless source link is opened?

    Quote Originally Posted by NBVC View Post
    Are you adding the path at all? It needs the path of the other workbook.
    You just mean the file path, like 'C:\xxx\xxx\xxx\' ? Yes, it does that automatically when I close out of the source worksheet, and all of the other formulas work with the same path.

    Why the #REF error?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: #VALUE! Error, unless source link is opened?

    I guess I was wrong... the INDEX within the SUM doesn't work either... I am not sure I ever tested that one.. INDEX on it's own works and SUM on it's own works....

    These indirect references are a problem with closed workbooks.

    If you can't just copy the values to your current workbook then sum them up directly there, then you may need VBA intervention.

  9. #9
    Registered User
    Join Date
    06-13-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: #VALUE! Error, unless source link is opened?

    Quote Originally Posted by NBVC View Post
    I guess I was wrong... the INDEX within the SUM doesn't work either... I am not sure I ever tested that one.. INDEX on it's own works and SUM on it's own works....

    These indirect references are a problem with closed workbooks.

    If you can't just copy the values to your current workbook then sum them up directly there, then you may need VBA intervention.
    I figured out a way - I just cumulatively summed the row from the source spreadsheet into a different tab in the original worksheet, then did an hlookup from that tab to get the cumulative amount at whatever lookup value I wanted (month).

    Thanks for the assistance. I'm sure I'll be back on this forum for more.

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: #VALUE! Error, unless source link is opened?

    Try SUMPRODUCT,

    =SUMPRODUCT(--(COLUMN(LINK!$T$5:$AE$5)-COLUMN(LINK!$T$5)+1<=Initiation!C13),LINK!$T$5:$AE$5)

    Add your file path.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  11. #11
    Registered User
    Join Date
    04-29-2013
    Location
    UK
    MS-Off Ver
    2012
    Posts
    1

    Re: #VALUE! Error, unless source link is opened?

    Just a quick note to say that this easily solved by replacing your SUMIF with a VLOOKUP OR HLOOKUP which do cross workbook borders. Clearly if these two formulae aren't then you can add to your source sheet to make it possible.

    All working fine for me now and much quicker (must be indexed better).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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