+ Reply to Thread
Results 1 to 4 of 4

Copying formula...

  1. #1
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2016 Mac
    Posts
    268

    Copying formula...

    So i have one workbook with multiple pages and i want to copy formulas from WB1 to WB2 which has the same sheets in it but with different data and overtime i copy a formula it automatically references WB1. Is there any way to copy the formulas and have them reference the sheet in WB2?

    Hope this is clear.

    Thanks

    Los

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: Copying formula...

    Press F2 to Edit the cell with the formula. Select the formula in the formula bar and copy it. Select the second workbook, select the relevant cell and paste the formula. Now copy it down if necessary.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: Copying formula...

    1. Select the formula cells you will copy, and click Home > Find & Select > Replace, or press shortcuts CTRL+H to open the Find & Select dialog box.
    2. Click Replace button, in the Find what box input “=”, and in the Replace with box input “#” or any other signs that different with your formulas, and click the Replace All button.
    Basically, this will stop the references from being references. For example, “=A1*B1” becomes “#A1*B1”, and you can move it around without excel automatically changing its cell references in current worksheet.
    3. And now all “=” in selected formulas are replaced with “#”. And a dialog box comes out and shows how many replacements have been made. Please close it.
    4. Copy and paste the formulas to the location that you want of the current worksheet.
    5. Select the both changed ranges, and then reverse the step 2. Click Home> Find & Select >Replace… or press shortcuts CTRL+H, but this time enter “#” in the Find what box, and “=” in the Replace with box, and click Replace All. Then the formulas have been copied and pasted into another location without changing the cell references

  4. #4
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: Copying formula...

    1. Select the formula cells you will copy, and click Home > Find & Select > Replace, or press shortcuts CTRL+H to open the Find & Select dialog box.
    2. Click Replace button, in the Find what box input “=”, and in the Replace with box input “#” or any other signs that different with your formulas, and click the Replace All button.
    Basically, this will stop the references from being references. For example, “=A1*B1” becomes “#A1*B1”, and you can move it around without excel automatically changing its cell references in current worksheet.
    3. And now all “=” in selected formulas are replaced with “#”. And a dialog box comes out and shows how many replacements have been made. Please close it.
    4. Copy and paste the formulas to the location that you want of the current worksheet.
    5. Select the both changed ranges, and then reverse the step 2. Click Home> Find & Select >Replace… or press shortcuts CTRL+H, but this time enter “#” in the Find what box, and “=” in the Replace with box, and click Replace All. Then the formulas have been copied and pasted into another location without changing the cell references

+ 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] Copying formula result to new cell, without copying formula itself
    By nappyjim1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2016, 02:24 AM
  2. Replies: 6
    Last Post: 04-25-2014, 10:31 AM
  3. Copying and pasting formula into specific range based on a formula value
    By akwishestofish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2012, 01:12 PM
  4. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  5. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  6. Copying cell formula with a constant formula value
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2012, 06:59 AM
  7. Copying formula to new worksheet: how to stop formula linking to original source?
    By test-card girl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2007, 07:32 AM

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