+ Reply to Thread
Results 1 to 5 of 5

how to parametrise file name in VLOOKUP external link

  1. #1
    Registered User
    Join Date
    07-13-2023
    Location
    czech
    MS-Off Ver
    2021 and 2007
    Posts
    5

    how to parametrise file name in VLOOKUP external link

    i often use this formula:
    =VLOOKUP($F25026;'d:\path\28734-VV_XXX_23MMDD_Prijmeni.xlsx'!Ciselnik2;3;false)

    and i need to parametrise "VV" in file name.

    but for ' apostrophe, i don't.

    i'd like use formula like this : =VLOOKUP($F25026;'d:\path\28734-' & F5 & '_XXX_23MMDD_Prijmeni.xlsx'!Ciselnik2;3;false)

    to change parametr VV in "F5" cell.

    is it posssible ? or how it could be?

    i have a thousands of this links in my workbook, so i want to change only parameter, not all these formulas. ?

    thanks for any advice.

    PS:
    the other file should by CLOSED.
    i can to write vba macro myself but i search simpliest solution.
    Last edited by Pacho; 07-13-2023 at 07:48 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: how to parametrise file name in VLOOKUP external link

    Hopefully this link will point you in the right direction

    https://www.automateexcel.com/formul...okup-indirect/

  3. #3
    Registered User
    Join Date
    07-13-2023
    Location
    czech
    MS-Off Ver
    2021 and 2007
    Posts
    5

    Re: how to parametrise file name in VLOOKUP external link

    thanks, but indirect need to other file would be OPEN. I need it would be CLOSED.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: how to parametrise file name in VLOOKUP external link

    you need vba on a button to refresh or on an update event, its hard with no file (s) to attach that works

    IF you put this code into a module (or go view macros record macros click on a cell then stop

    Co back to view macros , select your macro and edit

    replace the code with the below

    then draw a button on your sheet and attach your macro, it will rewrite the vlookup everytime it is pressed
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-13-2023
    Location
    czech
    MS-Off Ver
    2021 and 2007
    Posts
    5

    Re: how to parametrise file name in VLOOKUP external link

    davsth, thanks, I was hoping it would go through the formula, but I'm giving up hope. so let's program. :-)

+ 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] External Link to another file gives
    By fornight in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2019, 07:58 AM
  2. Can you link to an external csv file?
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 05-16-2013, 09:57 PM
  3. Link external file information.
    By fountain95 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2011, 08:57 PM
  4. link to external file by condition
    By fcarboni in forum Excel General
    Replies: 3
    Last Post: 04-04-2011, 09:10 AM
  5. Link to external file
    By candseeme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2010, 03:17 PM
  6. Link to external file
    By Tadashii in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2006, 03:35 AM
  7. External file link
    By superkopite in forum Excel General
    Replies: 6
    Last Post: 04-24-2006, 08:20 PM

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