+ Reply to Thread
Results 1 to 4 of 4

Problem with INDIRECT formula

  1. #1
    Registered User
    Join Date
    09-05-2010
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Problem with INDIRECT formula

    Hi Guys,

    I am trying to create a formula to copy data from D8 in another worksheet to the master copy. So far I have the following formula "=INDIRECT("'Invoice "&N506&".xlsm'!""D8")".
    The idea is to reference the worksheet by using "Invoice "&N505&" to pick the worksheet referred to in column N, row 505 and the data in cell D8 on that worksheet. By using this method I will be able to copy by dragging the formula. The problem I am having is that the formula is coming back with REF! I have tried to adjust the formula in various ways but have not succeeded in solving this problem. Any help much appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Problem with INDIRECT formula

    Are you looking at a different workSHEET or a different workBOOK?

    If a different sheet in the same book then the below should work.

    =INDIRECT("'Invoice "&N505&"'!D8")
    If I've been of help, please hit the star

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Problem with INDIRECT formula

    Hi DaveLearner

    Try
    =INDIRECT("'[The Workbook]Invoice "&N506&"'!$D$8")
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    09-05-2010
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Problem with INDIRECT formula

    Thanks Spencer 101 it works a treat. I was looking at different worksheet in same workbook. I now copy a copy of the front sheet from the relevant workbook into the Master sheet.
    I had tried looking at the worksheet in the original closed workbook using "=INDIRECT.EXT("'I:\Invoices\["&N505&" Invoice.xlsm]Invoice'!D8")" but could not get it to run. Tell a lie it did run once but upon reopening values were shown as REF! and could not get them to update hence the reason for applying the formula you have helped me with. Thanks again.

+ 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