+ Reply to Thread
Results 1 to 2 of 2

Use cell value as reference to closed workbook?

  1. #1
    Registered User
    Join Date
    08-10-2013
    Location
    Stafford, UK
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question Use cell value as reference to closed workbook?

    Hey guys,

    I have a workbook with a list of values.
    This file name changes every week (Due to the date)
    This workbook is closed.

    In a separate workbook i have a cell which concatenates multiple cells to make up the path and file name of the above closed workbook.
    I would like to use the value of this cell, as a reference.
    I have two ways in which i would like this to work.

    Preferably;

    I would like to use the value as a reference within a "=COUNTIF(" to count the amount of times a certain value appears in the list in the closed workbook.

    OR!

    [Add a countif to the closed workbook]

    Then use the value in the cell in the open workbook as a reference to the result of the countif in the closed workbook.

    Does this make any sense?

    If so any help would be much appreciated!

    Thanks in advance!

    Chris
    Last edited by ChrisKustom; 08-16-2013 at 10:20 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Use cell value as reference to closed workbook?

    Hi and welcome to the forum

    The only (formula) way to use a reference like that (the concatenate 1) is with indirect(). However, indirect() by itself does not work on closed workbooks You will need to also get the morefunc add-in
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-27-2011, 02:31 PM
  2. Reference cell in another (closed) WorkBook
    By DP978 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2010, 04:16 PM
  3. Replies: 2
    Last Post: 02-15-2010, 09:59 PM
  4. Replies: 0
    Last Post: 12-09-2008, 06:13 PM
  5. Indirect reference to closed workbook
    By Dingo0z in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-19-2008, 01:20 PM

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