+ Reply to Thread
Results 1 to 3 of 3

Copying formulas from one xlsx to another

  1. #1
    Registered User
    Join Date
    03-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Copying formulas from one xlsx to another

    Dear community,

    I would be very happy if you could help me with the following problem.

    Introduction: I have 50 xls(x) files, which have all the exactly same amount of tabs, which have all the same denomination. This file has been used as a questionnaire and, in the last tab, there is a summary of all answers given in the other tabs. As there was an error in this tab, I need to replace all formulas (approximately 200 cells). In order to do this, I have updated the formulas in one of the documents (which is now working correctly) and want to copy this to the other files.

    However, if I copy all cells from the tab of file (1) to file (2), the cell/formula is reffering/linking to file (1). The formulas change e.g. from (1) ='info stud.'!M5 to (2) ='[filename1.xlsx]info stud.'!M5 after I copied it.
    1) it does NOT work if I copy and click on [Start] [Insert] [Formula]. The result is the same
    2) it does NOT work if I change the properties of the cell from Standard to Text before I copy the formulas. The result is the same
    3) it does NOT work if I search for and try to replace e.g. [filename1.xlsx] in the document - an error message appears (it askes me to "update values" and I have to click on Cancel 200 times = number of cells)
    4) it does NOT work if I click on [Data] [Edit hyperlinks] (not sure if this is the correct translation. German: [Verknüpfungen bearbeiten])

    What should I do in order to have a working summary tab in every one of the 50 xls(x) files?

    Thank you.

  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
    53,049

    Re: Copying formulas from one xlsx to another

    Hi and welcome to the forum

    This is 1 of those irritating quirks of excel

    Highlight the formula in the formula bar and copy (CTRL C). escape from that, go to the nexy file, click teh formula bar there and paste (CTRL P). Once you have it in 1 cell, you can copy as usual
    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
    03-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copying formulas from one xlsx to another

    Thank you, Ford.
    Your solution worked well. Now I just need to do this 50 times. :-)

    Cheers.

+ 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: 1
    Last Post: 12-10-2013, 12:11 PM
  2. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  3. How can I convert multiple formulas from xls to xlsx?
    By mtrav10 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-30-2012, 07:15 PM
  4. How to add the columns data of several xlsx files of a folder in another xlsx file
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2012, 04:29 AM
  5. Syntax Error in VBA and Cannot save .xlsx with Macro - Formulas too long I think?
    By Belhadj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2010, 09:54 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