+ Reply to Thread
Results 1 to 3 of 3

Quote Crazy!! Concatenating filenames and cell values

  1. #1
    Registered User
    Join Date
    03-04-2012
    Location
    Macau
    MS-Off Ver
    Excel 2007
    Posts
    32

    Quote Crazy!! Concatenating filenames and cell values

    This should be easy but I can't figure it out.

    I want to run a formula with that references a cell in a separate file but part of the file name varies depending on input in a cell. For example the following formula works fine:

    =IF(VLOOKUP($D5,'\\CONFILESRV\Dept\Construction\Development\Fee Info\Fee Summaries\[9418.xlsx]Fee Summary'!$B$8:$F$78,5,FALSE)<>0,"Done","NO ")

    But if I want the file name 9148 to change depending on a value in cell A1 I tried the following and no luck

    =IF(VLOOKUP($D5,'\\CONFILESRV\Dept\Construction\Development\Fee Info\Fee Summaries\[&A1&.xlsx]Fee Summary'!$B$8:$F$78,5,FALSE)<>0,"Done","NO ")

    I can't figure out how to combine the two strings of text and the cell value. I've tried quotes, double quotes, and concatenate but no luck. Since the folder loation and worksheets will be the same I would like to put those in fixed cell locations too.

    Any advice out there?

    Thanks. I promise to add to your credentials!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Quote Crazy!! Concatenating filenames and cell values

    You would normally use INDIRECT to construct a cell reference as a string and then get Excel to recognise it as a cell reference.

    However, INDIRECT does not work with closed workbooks, so you won't be able to use it in this instance.

    One way around this limitation is to download the free add-in morefunc (do a Google search for sites where you can download it from), which will enable you to use the function INDIRECT.EXT, which does work with closed workbooks.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-04-2012
    Location
    Macau
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Quote Crazy!! Concatenating filenames and cell values

    Thanks Pete.

    I looked at INDIRECT too, but didn't see that it would help. Now I understand that when I enter the function the Excel Open File dialog box appeared. I'm not sure if I will used an add-in as our IT dept here is very strict on allowing us to load any applications.

    Tom

+ 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. Concatenating cell values to create sheet names
    By XLDabbler in forum Excel General
    Replies: 4
    Last Post: 08-27-2019, 11:49 AM
  2. [SOLVED] Concatenating cell values
    By tray262 in forum Excel General
    Replies: 20
    Last Post: 11-11-2012, 09:22 AM
  3. [SOLVED] Concatenating text values
    By mvg688 in forum Excel General
    Replies: 7
    Last Post: 05-23-2012, 07:43 AM
  4. Replies: 9
    Last Post: 02-14-2009, 01:50 PM
  5. Concatenating Columns values
    By sarathyvb in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2007, 08:06 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