+ Reply to Thread
Results 1 to 6 of 6

Excel 2010 formula with Dynamic wookbook name, static sheet name

  1. #1
    Registered User
    Join Date
    01-11-2018
    Location
    Orlando
    MS-Off Ver
    2010
    Posts
    3

    Excel 2010 formula with Dynamic wookbook name, static sheet name

    =INDIRECT(ADDRESS(65,20,1,1,VLOOKUP(C$4,FILELOCATION,2,FALSE)&C$4&$B$2&".XLS"))

    I created the formula above to pull info from a source workbook(dynamic name) into a summary workbook. Source file name will be dynamic plus I will have 10 source files to pull into the summary workbook.
    This formula works when the cell T65(65,20) is in Sheet1 of the workbook.
    How do I alter the formula to pull from sheets other than Sheet1? I am trying to pull data from Sheet6 (in the source file) which is called Budget Export.
    I don't know macros so this is why I am trying to stick with formulas.

    The VLOOKUP just creates the path for the file name but it doesn't reference the Sheet so it seems to be defaulting to Sheet1.

    This is the path the VLOOKUP creates:
    U:\Public - Everyone\HealthServices\Nursing Analysis\FYE2018\WPT\WWP 2018-0106.xls'!$T$65


    Any suggestions of where I reference the sheet name in the formula?

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Excel 2010 formula with Dynamic wookbook name, static sheet name

    I suppose you must single quote the path and filename.
    Try
    =INDIRECT("'" & ADDRESS(65,20,1,1,VLOOKUP(C$4,FILELOCATION,2,FALSE)&C$4&$B$2&".XLS"))

  3. #3
    Registered User
    Join Date
    01-11-2018
    Location
    Orlando
    MS-Off Ver
    2010
    Posts
    3

    Re: Excel 2010 formula with Dynamic wookbook name, static sheet name

    hmmm...no luck...any other suggestions? I'll keep plugging away..

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Excel 2010 formula with Dynamic wookbook name, static sheet name

    Hi
    The string to use in INDIRECT is

    'U:\Public - Everyone\HealthServices\Nursing Analysis\FYE2018\WPT\[WWP 2018-0106.xls]'!$T$65

    Note the []

    The file must be open
    Last edited by José Augusto; 01-11-2018 at 05:41 PM.

  5. #5
    Registered User
    Join Date
    01-11-2018
    Location
    Orlando
    MS-Off Ver
    2010
    Posts
    3

    Re: Excel 2010 formula with Dynamic wookbook name, static sheet name

    yes, it's open

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Excel 2010 formula with Dynamic wookbook name, static sheet name

    Use

    'path[filename]'sheetname!celladdress

+ 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. [SOLVED] Wookbook & Sheet field questions
    By Grenpara in forum Excel General
    Replies: 7
    Last Post: 02-13-2017, 09:52 PM
  2. Dynamic Charting using a formula driven table. Excel 2010
    By David_S_Walker in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 04-06-2016, 11:39 AM
  3. [SOLVED] Change Sheet Name of new WookBook after SaveAs
    By capson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2014, 06:12 PM
  4. Replies: 2
    Last Post: 11-01-2013, 01:46 PM
  5. Replies: 1
    Last Post: 01-22-2013, 07:02 AM
  6. Formula with static and dynamic cell references
    By zackb11 in forum Excel General
    Replies: 2
    Last Post: 01-20-2011, 04:04 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