+ Reply to Thread
Results 1 to 4 of 4

Changing data source after copying a previous row's set of reference formulas to a new row

  1. #1
    Registered User
    Join Date
    04-24-2015
    Location
    USA
    MS-Off Ver
    Office for Mac 2011
    Posts
    4

    Changing data source after copying a previous row's set of reference formulas to a new row

    I have a workbook that is built to consolidate and calculate data from about 30 individual workbooks. Each of the source workbooks are, for the most part, identical. Most of the cells in the consolidating workbook use a ='[source workbook]sheet1'!$f$41 formula to pull the referenced cell data (other formulas calculate a percentage from two cells from the source workbook or averages from several cells in the source workbook). The source workbook data is all over the worksheet while the consolidating workbook has each source workbook represented in its own row with the like data from the other workbooks in columns.

    Is there a way after copying and pasting the formulas to the next row to then go and change the source workbook for each row without going to each individual cell and changing the name of the source by hand? 30 rows x 30 columns= 900 cells that'd need to be changed. I've gone to Data>Edit Links, but this only shows currently linked workbooks and I don't see a way to link to a new unlisted workbook. Thanks!


    Office for Mac 2016
    Last edited by scootty83; 01-20-2016 at 04:01 PM. Reason: Changed post to SOLVED

  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,720

    Re: Changing data source after copying a previous row's set of reference formulas to a new

    If the layout is exactly the same in the other workbooks, AND if they are both in the same folder and thus have the same path, then you could select all the cells with the formula in and do CTRL-H (Find and Replace), and:

    Find what: [source_workbook_1.xlsx]
    Replace with: [source_workbook_2.xlsx]
    Click Replace All

    Obviously, you should use the appropriate filenames.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-24-2015
    Location
    USA
    MS-Off Ver
    Office for Mac 2011
    Posts
    4

    Re: Changing data source after copying a previous row's set of reference formulas to a new

    Brilliant! This worked perfectly! I don't know why I didn't think of that... Derp...

    Thanks, Pete!

    -Taylor

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

    Re: Changing data source after copying a previous row's set of reference formulas to a new

    You're welcome, Taylor - thanks for the rep.

    Pete

+ 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. [SOLVED] Changing Pivot Table Source Week using a reference cell
    By interested in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2013, 06:12 AM
  2. [SOLVED] Automatically copying previous row formulas to next row.
    By namso1902 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2013, 08:17 PM
  3. Automatically copying previous row formulas to next row.
    By namso1902 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2013, 10:29 AM
  4. Changing source workbook names directly in formulas
    By sine.grujica in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2013, 08:49 AM
  5. Copying formulas without the source link...
    By Finalfrontier1976 in forum Excel General
    Replies: 2
    Last Post: 01-20-2012, 10:02 AM
  6. Copying formulas with different source cells?
    By Params7 in forum Excel General
    Replies: 5
    Last Post: 02-16-2009, 05:01 PM
  7. [SOLVED] worksheet copying, changing source link
    By jtaiariol in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2006, 02:55 PM
  8. worksheet copying, changing source link
    By jtaiariol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2006, 02:30 PM

Tags for this Thread

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