+ Reply to Thread
Results 1 to 5 of 5

Creating a Range Reference

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Creating a Range Reference

    So I have a large file that pulls data from lots of other files. One row pulls data from a different file every week. I want to know if I can concatenate or use indirect to create the lookup array within the match() function. I don't want to hand put in a new file name every week.

    This is what I have right now in cell A3 and it works.
    =Match("Schedule Adh. %",'[Schedule Adherence WK31 2013.xlsx]Summary'!$6:$6,0)

    In cell A2 I have concatenated [Schedule Adherence WK31 2013.xlsx] as a text string.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Creating a Range Reference

    Have a look at INDIRECT.EXT as it seems its a reference external to your workbook
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Creating a Range Reference

    Yes, you can use indirect for that.
    Note, the file written in A2 must be open for this to work.

    =Match("Schedule Adh. %",INDIRECT("'"&A2&"Summary'!$6:$6"),0)

  4. #4
    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,938

    Re: Creating a Range Reference

    To add to Ace's post, this is part of the Morefunc add-in that you need to download and run, this allows INDIRECT to work with closed workbooks
    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

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Creating a Range Reference

    Since the formula doesn't include a file path, one would assume the workbook will be open.
    Remember what the dormouse said
    Feed your head

+ 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. Creating absolute reference in a named range
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2010, 09:10 AM
  2. Replies: 1
    Last Post: 11-11-2009, 01:08 AM
  3. Replies: 3
    Last Post: 12-09-2008, 05:19 PM
  4. Creating reference to array which has range defined in a seperate worksheet
    By cdrwolfe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2008, 09:02 PM
  5. Creating your own reference
    By RBHicks in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 12:05 PM

Tags for this Thread

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