Closed Thread
Results 1 to 3 of 3

Copy data from one to workbook to another

  1. #1
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    Copy data from one to workbook to another

    Hello,

    I need some advice regarding following:

    Once a month a workbook is created with reports. The structure of the monthly workbooks looks in 2019 like this:

    Statistics Modell 201901.xlsx
    Statistics Modell 201902.xlsx
    Statistics Modell 201903.xlsx
    Statistics Modell 201904.xlsx
    Statistics Modell 201905.xlsx
    Statistics Modell 201906.xlsx

    Every workbook requires data from the workbook of the previous month. This means the following:

    „Statistics Modell 201906.xlsx“ requires data from „Statistics Modell 201905.xlsx“
    „Statistics Modell 201905.xlsx“ requires data from „Statistics Modell 201904.xlsx“
    …and so on…

    The layout (sheets, data position in the cells) of the workbooks is identical.

    What ist the most elegant way to reference data from one workbook to another? The references are going to stay the same every month.

    I want to build a master file which only needs to be copied and renamed and every month. This means, if we look at the future:

    „Statistics Modell 201907.xlsx“ should automatically reference to „Statistics Modell 201906.xlsx“

    Do you have any idea how to do this?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Copy data from one to workbook to another

    This might be tricky using formulae, as you will need to use the INDIRECT function to convert a "calculated" reference into an actual reference that Excel can make use of, and the INDIRECT function will only work on external files if they are open in the same instance of Excel.

    Can you guarantee that the "previous" file will always be open as well as the "current" file?

    An alternative would be to consider dragging the "previous" sheet into the "current" file.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Copy data from one to workbook to another

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...o-another.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 07-29-2014, 01:06 PM
  2. [SOLVED] Macro to find data in source workbook and copy paste to target workbook
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2014, 06:21 AM
  3. Copy data one workbook to another workbook without opening workbook
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 11:28 AM
  4. Replies: 6
    Last Post: 01-29-2013, 07:01 AM
  5. Copy data from workbook, create new workbook, paste data to new worbook?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-16-2011, 06:39 PM
  6. 1.Open workbook. 2 copy data. 3 replace data. 4 save workbook.
    By Cristobalitotom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2006, 07:24 PM
  7. Replies: 1
    Last Post: 04-01-2006, 03:50 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