+ Reply to Thread
Results 1 to 11 of 11

Having issues with INDIRECT and cell references

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Having issues with INDIRECT and cell references

    Hi everyone,

    I'm hoping this will be a fairly easy fix, I'm sure I've done something like this before but I don't use the INDIRECT function that often so hopefully I'm just missing something really simple....

    I have over 100 workbooks all with the exactly same layout, it is a different set every month so the filenames are never the same (lots of people contribute and sometimes new ones get added/old ones get deleted etc.). I'm trying to make a summary workbook which draws the key data from all the workbooks.

    To do this I have this formula... (with the workbook name written, [filename.xls], in P5)

    =INDIRECT("'G:\Outputs\Results May 2013\"&$P5&"Overview_results'!$F$36")

    however this always returns a #REF error rather than the value in F36. I'm not sure what I'm missing, I've got all the workbooks open so it can't be that.

    Any help would be much appreciated, I can also post a skeleton version of the workbook if that would help.

    Thanks,

    Alice
    Last edited by qaliq; 05-31-2013 at 06:12 AM. Reason: Solved

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Having issues with INDIRECT and cell references

    What is in P5 ?

    EDIT-
    sorry missed it the first read
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Having issues with INDIRECT and cell references

    Not sure, but maybe this:
    =INDIRECT("'[G:\Outputs\Results May 2013\"&$P5&"]'Overview_results'!$F$36")
    would need to seen a sample workbook to go any further than that

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having issues with INDIRECT and cell references

    Indirect won't work with closed workbooks

    Use Indirect.Ext function of Morefunc Addin to get data from closed workbooks


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Having issues with INDIRECT and cell references

    Maybe this addin can help

  6. #6
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Having issues with INDIRECT and cell references

    Quote Originally Posted by Pepe Le Mokko View Post
    Maybe this addin can help
    Sadly I'm on my work computer so I can't install any add-ins

  7. #7
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Having issues with INDIRECT and cell references

    Quote Originally Posted by dredwolf View Post
    Not sure, but maybe this:
    =INDIRECT("'[G:\Outputs\Results May 2013\"&$P5&"]'Overview_results'!$F$36")
    would need to seen a sample workbook to go any further than that
    I thought the [] only needed to go around the filename not the whole path?

    I have attached a sample workbook here (unfortunately my actual workbook is fairly confidential so i've just copied and pasted the relevant columns).

    Thanks
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Having issues with INDIRECT and cell references

    Quote Originally Posted by :) Sixthsense :) View Post
    Indirect won't work with closed workbooks

    Use Indirect.Ext function of Morefunc Addin to get data from closed workbooks
    I know! I have a macro which I run beforehand which opens all the workbooks in the folder.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having issues with INDIRECT and cell references

    Quote Originally Posted by qaliq View Post
    I know! I have a macro which I run beforehand which opens all the workbooks in the folder.
    If the files are already kept open then there is no need of root path

  10. #10
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Having issues with INDIRECT and cell references

    Quote Originally Posted by :) Sixthsense :) View Post
    If the files are already kept open then there is no need of root path


    Awesome!! That's fixed it for me now, thank you so much for your help

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having issues with INDIRECT and cell references

    Glad you fixed it and thanks for the feedback

+ 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