+ Reply to Thread
Results 1 to 4 of 4

Using a cell to create file name

  1. #1
    Forum Contributor
    Join Date
    02-25-2008
    Posts
    101

    Using a cell to create file name

    Hiya,

    Cell B2 in a file called 'Summary sheet' says:
    ="Cohort "&'[Details Sheet.xlsx]Home & Navigation'!$F$21
    This means B2 displays 'Cohort D3'.

    However, the name of Details sheet can be changed at any time... I was wondering, does this automatically update the formula in cell B2 of summary sheet?

    Is there a way that I can type "Details Sheet" into cell A1, and then the formula in cells B2 can work off this? I have tried doing the following but it doesn't work:
    ="Cohort "&'["&A1&".xlsx]Home & Navigation'!$F$21


    Hope that all made sense, I'm thinking it didn't?

    Thanks!

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Wrap what you have in the INDIRECT function:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-25-2008
    Posts
    101
    Hiya,

    Thanks for replying. But it doesn't seem to work. I think it might be a problem with the speak marks (") but I can't seem to work it out.

    any ideas?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Try ="Cohort " & INDIRECT( "'[" & A1 & ".xlsx]Home & Navigation'!$F$21")

    The linked workbook must be open in the same instance of Excel for INDIRECT to work.

+ 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. Open file based on cell data
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 08-15-2008, 05:01 AM
  2. What do I need to create an Excel format file?
    By OM2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2008, 01:06 PM
  3. Create .csv file programmatically using C#
    By janverge in forum Excel General
    Replies: 0
    Last Post: 09-11-2007, 10:18 PM
  4. Open New Instance Of Excel With Named File
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2007, 10:25 PM
  5. Replies: 1
    Last Post: 07-14-2007, 07:25 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