Indirect Function Causing #Ref! Error
Results 1 to 2 of 2

Thread: Indirect Function Causing #Ref! Error
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jan 2019
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Indirect Function Causing #Ref! Error

    The following formula pulls data from the specified workbook, even when the workbook isn't open:
    ='C:\Users\Username\Documents\Report\[Test Workbook - 6-11-2019.xlsx]Sheet1'!A1

    I added an indirect reference to the formula and it pulls data from the workbook... the only problem is said workbook now has to be open in order to avoid the #Ref ! error. Any ideas at how I can get this to pull automatically without needing to open workbooks?

    =INDIRECT("'C:\Users\Username\Documents\Report\[Test Workbook - "&D4&".xlsx]Sheet1'!A1") (where D4 is the date 6-11-2019)

    Thanks!

  2. #2
    Board Regular
    Join Date
    Feb 2018
    Location
    Oz
    Posts
    113
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Indirect Function Causing #Ref! Error

    G'day Jak,

    From Excel Help:
    Example – Referencing a closed workbook with INDIRECT

    In the following example, an INDIRECT function is attempting to reference a workbook that’s closed, causing a #REF! error.

    Solution
    Open the referenced workbook. You'll encounter the same error if you reference a closed workbook with a dynamic array function.
    So it looks like it can't be done.

    shane
    Be warned - I'm an Excel enthusiast, not an expert.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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