+ Reply to Thread
Results 1 to 4 of 4

Vlookup with file name change daily

  1. #1
    Registered User
    Join Date
    01-17-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    Vlookup with file name change daily

    Please can someone help me,

    I have 2 files with the name of
    Schedule Jan 16, 2018 Test.xlsx
    and other is
    Report 16012018.xlsx

    I want to do Vlookup in the file 1 and to take the name of file 2 to get the information I required from the cell.

    Please see my formula

    VLOOKUP(L10,'G:\SS\Box\P Schedule\January 2018\[Report 16012018.xlsx]Sheet1'!$B:$Q,3,FALSE)

    The reason is that each day the file name is change to next date. I want to put in the reference cell file name and do vlookup using the file name in that cell.

    Please let me know if you required more information.

    Syed

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Vlookup with file name change daily

    Dear Syed:

    Be so kind to provide sample workbooks so we can help you better and faster.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Vlookup with file name change daily

    To reference a cell to give you the file name for use in a formula, you need to use INDIRECT. However, that only works if the source file is open.
    If you cannot always have the source file open, take a look at using the Morefunc add-in, it allows using INDIRECT on closed workbooks
    http://www.ashishmathur.com/tag/morefunc/
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-17-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    Re: Vlookup with file name change daily

    Schedule Jan 17, 2018 with 4 RT Test.xlsx20180116.xlsx

    Please see the attached files, I want to put values in file "20180117" and it can show in real time in "Schedule Jan 17, 2018 with 4 RT Test".

    Please let me know if you need more information. Thanks

+ 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] Create summary file from daily worksheet that will be cleared daily
    By spyac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2017, 10:04 AM
  2. Download zip file daily with changing file name
    By vjvijay88 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-08-2017, 12:44 PM
  3. Daily Allowance Calculation From Previous Daily Spending Against A Daily Budget
    By WillYoung351 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-03-2014, 05:00 PM
  4. Macro to full in data from Master file to a daily recon file
    By Dnels in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2013, 12:03 PM
  5. Replies: 4
    Last Post: 12-17-2012, 03:01 PM
  6. Daily change log
    By mattd30 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2009, 12:38 PM
  7. creating a yearly database file using info in daily file
    By bilbobagginz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-12-2008, 09:47 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