+ Reply to Thread
Results 1 to 2 of 2

Formula to include document path based on a cell value.

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Formula to include document path based on a cell value.

    I have not successfully performed this yet, however, I am wondering if it is possible to have a formula that can use a cell value to locate a specific file within a predetermined folder.

    I'm trying to use an INDEX MATCH formula to achieve my results. Each person has a specific xlsx/xlsb file within a folder called 'agent'.

    The formula I am using right now is using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But I would like to replaced 'david' with something like a cell number (A3 for example) so that when I drag out a formula it will automatically search for the file with that name. It would basically be searching for david.xlsb without me having to specify david in that particular formula. In theory the formula will be utilized just under 100 times within the document.

  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
    53,044

    Re: Formula to include document path based on a cell value.

    To refer to a text cell to be used as part of a formula, the way you want, you would use INDIRECT(). However, that only works on open files, and it appears that your file will be closed?

    You have 2 options for that...
    1. try using the Morefunc add-in which allows INDIRECT() to work on closed workbooks.
    2. get someoner to write some VBA code for you to do what you want
    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. Include cell value in folder path for a linked file
    By Snajder in forum Excel General
    Replies: 1
    Last Post: 06-27-2013, 04:25 AM
  2. Replies: 4
    Last Post: 02-05-2010, 10:05 AM
  3. macro to include cell contents b1 in file path
    By martindwilson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2008, 07:42 AM
  4. Include Computername in data souce path?
    By MrBuckingham in forum Excel General
    Replies: 1
    Last Post: 06-28-2007, 04:31 AM
  5. How do I include file name and path in the header?
    By Matthew Connellan in forum Excel General
    Replies: 4
    Last Post: 05-23-2006, 11:55 AM

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