+ Reply to Thread
Results 1 to 4 of 4

Referencing a cell from a workbook that is named by date

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Referencing a cell from a workbook that is named by date

    Hi I'm new to excel and need a lot of help from an expert. I need to reference a specific cell from a workbook called Charges Adjustment 08.06.2015 (lets say cell E79) in a compeletly different workbook called daily update.

    It seems easy but the date will change every day from 08.06.2015 to 08.07.2015 etc.. However the Charges Adjustment part is constant.

    Is it possible to have a cell reference that looks in the correct workbook based on the date (for instance it goes to the next days Charge Adjustment workbook and finds the value of cell E79 and then posts it in the daily update workbook)?


    Thanks in advance for any help!!!!

  2. #2
    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,938

    Re: Referencing a cell from a workbook that is named by date

    You would normally do something like this using INDIRECT(). However, that only works on open workbooks (the file you are referencing needs to be open too)

    If this will not be feasable (dont want the otehr file open), thenb take a look at using the Morefunc add-in. Find it here...
    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

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Referencing a cell from a workbook that is named by date

    Doesn't look like the morfunc works for specific dates. Looks like it just goes in order by the way it's placed in a folder....

  4. #4
    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,938

    Re: Referencing a cell from a workbook that is named by date

    No, the Morefun works on file names converted from cell text entries. You enter the "name" into a cell, MF converts that - along with the rest of your sheet name/cell ref into something excel can then use in a formula. This what a sample would look like using INDIRECT(). Morefunc works kinda the same way...
    K
    L
    21
    Richard
    22
    Sample Richard

    K22=your file name
    L21=[sample.xlsx]Sheet3!$B$1
    This is what the formula would look like if the file name was not variable
    L22=INDIRECT("["&K22&".xlsx]Sheet3!$B$1")
    This is what that same formula would look like using INDIRECT() with a vairable file name

+ 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. Moving worksheet with named ranges to new workbook without referencing old workbook
    By madcaplaughs79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 07:54 PM
  2. Referencing a named cell
    By monraf in forum Excel General
    Replies: 1
    Last Post: 07-30-2014, 12:50 AM
  3. Referencing a named range, from a cell
    By StevenAFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2008, 07:37 AM
  4. Referencing Named Cell Ranges
    By K_REY_C in forum Excel General
    Replies: 6
    Last Post: 03-01-2007, 01:42 AM
  5. INDIRECT and Named Ranges referencing closed workbook
    By gpie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2005, 07:05 PM
  6. referencing a named range from a closed workbook
    By Gixxer_J_97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2005, 04:06 PM
  7. Referencing a cell within a named range
    By ursamtl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2005, 10:44 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