+ Reply to Thread
Results 1 to 4 of 4

formula changes when copied

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    formula changes when copied

    Hi,
    I copied a sheet from book1 to book2. The formulas in the sheet of book2 shows the name of book1 in the formulas. How can I remove these book1 references?

    Example:
    Formula after copying the sheet to Book2 is:
    =IF('C:\Stony\[C5-C7_Corona.xlsm]Constants'!B14="","",'C:\Stony\[C5-C7_Corona.xlsm]Constants'!B14)

    The formula in Book2 should look like this:
    =IF(Constants!B14="","",Constants!B14)

    Where Constants is a sheet in the the workbook.

    Can this be done? I have 127 formulas in the sheet.

    Khalil

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

    Re: formula changes when copied

    If you select all the cells which you want to change then you can do it in one operation using Find & Replace (CTRL-H):

    Find What: C:\Stony\[C5-C7_Corona.xlsm]

    Replace with: (leave blank)

    then click Replace All

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Re: formula changes when copied

    Hi,
    Thank you. This works fine.

    The sheet I am copying has Validation Data with Range names. It gives a message that "you may not use references to other workbooks for data validation"

    How can this be solved

    Khalil

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

    Re: formula changes when copied

    Go to Name Manager on the Formulas tab and adjust the Refers To: range as appropriate by deleting the path and filename.

    Hope this helps.

    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. Replies: 5
    Last Post: 02-15-2017, 08:28 AM
  2. [SOLVED] Copied formula returns 0 value
    By ECYOJ in forum Excel General
    Replies: 1
    Last Post: 11-25-2014, 11:02 PM
  3. [SOLVED] When data is copied to another workbook, hyperlinks as not copied or they don't work
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-17-2014, 06:46 AM
  4. Copying multiple worksheet so that copied hyperlinks link to new copied sheets
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 02:37 PM
  5. [SOLVED] Formula result will not show when formula is copied to another cell
    By nabraham00 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 01:03 PM
  6. If formula copied down
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2009, 05:32 AM
  7. Add formula to copied row
    By GDS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2009, 01:39 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