+ Reply to Thread
Results 1 to 3 of 3

Dynamic External Workbook Formula

Hybrid View

  1. #1
    Co-op Bank
    Guest

    Dynamic External Workbook Formula

    I have the following formula, its referencing an external workbook:-
    =VLOOKUP(C3,'051206Cost Centre 1 .xls'!$D:$F,3,FALSE), the problem is the
    prefix to the external workbook is a date and this changes every day (i.e.
    the '051206' bit of the formula is the current day in yymmdd format).

    Is there any way I type in a single formula that will dynamically refer to
    the current days spreadsheet? I have tried the following but it returns an
    error: - =VLOOKUP(C3,"'"&TEXT(TODAY(),"yymmdd")&"Cost Centre 1
    ..xls'!"&$D:$F,3,FALSE)

    Any suggestions much appreciated.

    Thanks

    Brian
    Co-op Bank
    Manchester, England

  2. #2
    Roger Govier
    Guest

    Re: Dynamic External Workbook Formula

    Hi Brian

    Try
    =VLOOKUP(C3,INDIRECT("'"&TEXT(TODAY(),"yymmdd")&"Cost Centre
    1.xls'!"&$D:$F),3,FALSE)

    Regards

    Roger Govier


    Co-op Bank wrote:
    > I have the following formula, its referencing an external workbook:-
    > =VLOOKUP(C3,'051206Cost Centre 1 .xls'!$D:$F,3,FALSE), the problem is the
    > prefix to the external workbook is a date and this changes every day (i.e.
    > the '051206' bit of the formula is the current day in yymmdd format).
    >
    > Is there any way I type in a single formula that will dynamically refer to
    > the current days spreadsheet? I have tried the following but it returns an
    > error: - =VLOOKUP(C3,"'"&TEXT(TODAY(),"yymmdd")&"Cost Centre 1
    > .xls'!"&$D:$F,3,FALSE)
    >
    > Any suggestions much appreciated.
    >
    > Thanks
    >
    > Brian
    > Co-op Bank
    > Manchester, England


  3. #3
    John Michl
    Guest

    Re: Dynamic External Workbook Formula

    I believe you can use the INDIRECT function to piece together the text
    for the reference. I haven't done it recently so don't recall the
    exact usage but it might be something like:

    =VLOOKUP(C3,INDIRECT"["&TEXT(TODAY(),"yymmdd")&"Cost Centre
    1.xls]Sheet1!$D:$F),3,FALSE)

    - John


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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