+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP from other file

  1. #1
    Registered User
    Join Date
    11-14-2020
    Location
    Norfolk, NE
    MS-Off Ver
    2019
    Posts
    5

    VLOOKUP from other file

    Capture.PNG

    I want to refer to another file using VLOOKUP from another file, and refer the date from other cell in the worksheet

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: VLOOKUP from other file

    Do you mean that you want to do a VLOOKUP in another file, and the name of the file where you want to do the lookup is based on the date in row 1?

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,625

    Re: VLOOKUP from other file

    deleted.....
    Last edited by protonLeah; 11-14-2020 at 03:33 PM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    11-14-2020
    Location
    Norfolk, NE
    MS-Off Ver
    2019
    Posts
    5

    Re: VLOOKUP from other file

    That is right, for example for column G im pulling a VLookup from Daily 10-28-2020.xlsm

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: VLOOKUP from other file

    The challenge with this is that you will want to use the INDIRECT function, but if you use INDIRECT you will get an error unless 'Daily 10-28-2020.xlsm' is open and I'm guessing in your situation it will not be open. The only other option involves macros in some form. I would use a macro to write the formula for direct access. I can help with that if you want to go that direction.

  6. #6
    Registered User
    Join Date
    11-14-2020
    Location
    Norfolk, NE
    MS-Off Ver
    2019
    Posts
    5

    Re: VLOOKUP from other file

    Could you please assist with the macro. Thank you

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: VLOOKUP from other file

    Can you attach your file? See yellow banner at the top of the page.

  8. #8
    Registered User
    Join Date
    11-14-2020
    Location
    Norfolk, NE
    MS-Off Ver
    2019
    Posts
    5

    Re: VLOOKUP from other file

    Please see attachment .
    Attached Files Attached Files

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: VLOOKUP from other file

    This assumes that your external files use mm-dd-yyyy as the naming format. Whenever a date in row 1 changes, the formulas in that column will be updated to reflect the date.

    Do you insert columns with new dates, or just change dates in the existing columns?

    The file is a little bit of a mess in column E because I did some testing but do not have the files this references, so could not really conduct a complete test, so some formulas have changed to invalid dates.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 03-12-2019, 04:32 PM
  2. [SOLVED] Import data from .XLS, xlsx file into .xlsm file and do vlookup
    By pacificepoc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2018, 01:32 AM
  3. [SOLVED] Import .xls file in .xlsm file using macro and vlookup the sheets in new sheets
    By pacificepoc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2018, 04:06 AM
  4. VBA - User Prompted to choose source file for Vlookup, Error after file is opened
    By gcxp97 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-08-2016, 06:11 PM
  5. Vlookup, vlookup in external web Excel file
    By G.Bregvadze in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-15-2013, 02:10 AM
  6. Replies: 22
    Last Post: 12-11-2012, 12:43 PM
  7. File name in Vlookup
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2005, 05:05 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