+ Reply to Thread
Results 1 to 3 of 3

Formula to refer to a file name based on value in criteria cell [column]

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Formula to refer to a file name based on value in criteria cell [column]

    Hello All,


    I have attached a set of 4 Files [let's say that they are stored in location C:\Files\]:
    1. Main File.xlsx [this is where I am working on the formula]
    2. Core S4.xlsx
    3. Core Bev.xlsx
    4. Finishing.xlsx

    the formula needs to be added to "Q6", being:

    =if(iserror(vlookup(A6,'C:\Files\["Column I".xlsx]All Data'!A:L,12,false)),"",vlookup(A6,'C:\Files\["Column I".xlsx]All Data'!A:L,12,false)

    Therefore in the value from column "I" from Main File needs to determine what file to refer to. this will be the name of a file.

    I do remember that I have once worked on something where a formula could determine what tab to go to based on the value of a certain cell.

    Does anyone think it is doable? Has anyone of you have ever done something like this before?

    I appreciate any help.

    Thank you in advance

    Simon
    Attached Files Attached Files
    ...and this is when I walk in, dressed fully in white...

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Formula to refer to a file name based on value in criteria cell [column]

    Here is some useful information on "Indirect"

    http://www.contextures.com/xlFunctions05.html

  3. #3
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Re: Formula to refer to a file name based on value in criteria cell [column]

    Hello davesexcel,

    I have read this article and have a clear enough understanding of the function.

    Works perfectly to what I need it to do.

    Thank you greatly.

+ 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. Formula to pull rows of data based on a column cell value (Criteria)
    By PaulLor89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 11:26 AM
  2. How to refer to the correct item/position of a column in another file....
    By malcolmlo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-13-2012, 06:05 AM
  3. Replies: 0
    Last Post: 09-26-2012, 01:15 PM
  4. Excel formula for filling column refer to multiple criteria
    By TJTL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2012, 08:33 PM
  5. Replies: 3
    Last Post: 02-15-2011, 08:31 AM
  6. make criteria in sumif refer to another cell
    By keithjdowling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2006, 09:20 PM
  7. VBA to refer to a cell in a different file
    By dazman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2005, 09:00 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