+ Reply to Thread
Results 1 to 7 of 7

Link to a workbook using a cell reference

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Billericay, UK
    MS-Off Ver
    Home and Business 2013
    Posts
    9

    Link to a workbook using a cell reference

    Hi. I have daily valuation spreadsheets that are dated as they are saved like this - Daily Valuation - 20160614.xlsx.
    To find the change in a today's cells values from yesterday's sheet i want to auto link.
    I am trying to get the value of cell E1 from Daily Valuation - 20160614.xlsx by using a changing date in a cell (see J2)
    I am thinking along the line of linking using the formula in K2 which will change every day but I've failed to get it right.
    Please see attached.
    Any help will be very much appreciated.
    My PC Spec is:
    Intel® Core? i7-5820K Processor
    MSI X99A Raider USB 3.1 Socket 2011-3 Motherboard
    16GB (4x4GB) Quad Channel DDR4 2133 MHz Memory
    Windows 10 Home 64 bit
    Microsoft Office Home and Business 2013


    Regards, Peter
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Link to a workbook using a cell reference

    LOL!
    Peter we do not need to know how awesome your PC is (5820K!!!) to help with your problem.

    The problem is it appears you are trying to use some sort of indirect function with a closed workbook and that doesn't work.
    You CAN use VBA to pull the data in instead, but I am not sure if you are wanting that.


    In the past I just created a dataset and had a column for DATE, then you can just filter on the date, or do a lookup off date off the ONE dataset, instead of multiple workbooks. Really, when you have multiple workbooks it gets to be a pain in the rear.
    If your data is larger than 1.048M records you can use access or SQL or MySQL and/or PowerPivot.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    11-12-2011
    Location
    Billericay, UK
    MS-Off Ver
    Home and Business 2013
    Posts
    9

    Re: Link to a workbook using a cell reference

    Hi Mike, Thank you for your prompt reply, sorry I always thought it was necessary to give a PC spec.
    I'm trying to just use excel code to make the link avoiding VBA.
    This is not on a large database.
    I looked at indirect but again couldn't get ant sense out of it.
    Regards,
    Peter.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Link to a workbook using a cell reference

    Ha, yeah I laughed because that is a nice PC and we dont really need to know that info.

    Indirect has a lot of great uses but I don't think it will work on closed workbooks.
    You CAN have a vlookup on a hard coded workbook name, then just find and replace that name everyday. I find that more annoying than VBA so I would pull the data in via VBA.

  5. #5
    Registered User
    Join Date
    11-12-2011
    Location
    Billericay, UK
    MS-Off Ver
    Home and Business 2013
    Posts
    9

    Re: Link to a workbook using a cell reference

    Thanks again Mike for your thoughts. I'm trying to avoid having to do anything, typing or even clicking a button and thought about a macro that ran upon opening but this is a new sheet every day. This code would just be pasted in with the other daily information in one go.
    Last edited by PCArmour; 06-15-2016 at 05:24 PM.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Link to a workbook using a cell reference

    Then I would likely have a Summary workbook that pulled in the last TWO days and compared the, likely with VBA.
    This gets around your issue of a new workbook each day.

  7. #7
    Registered User
    Join Date
    11-12-2011
    Location
    Billericay, UK
    MS-Off Ver
    Home and Business 2013
    Posts
    9

    Re: Link to a workbook using a cell reference

    OK, thank you, I have used dates in VBA to save file names I'll have a have a look at that method tomorrow - enough for one day. Regards, Peter.

+ 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: 2
    Last Post: 03-02-2016, 07:05 AM
  2. Reference Cell or Date within formula workbook link
    By GeorgeMustang in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2014, 12:24 PM
  3. External Workbook Link with Dynamic Cell Reference
    By mst3kr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2014, 10:24 PM
  4. Replies: 0
    Last Post: 09-23-2013, 05:59 PM
  5. External workbook - reference with single link?
    By djarcadian in forum Excel General
    Replies: 2
    Last Post: 05-17-2013, 02:13 AM
  6. Replies: 0
    Last Post: 10-11-2012, 10:48 PM
  7. Excel workbook will not close due to VB Reference link
    By Ricardo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2005, 02:06 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