+ Reply to Thread
Results 1 to 3 of 3

Formulas do not travel between workbooks - they keep pointing to the original source

Hybrid View

akedm Formulas do not travel... 08-16-2023, 01:26 PM
Bernie Deitrick Re: Formulas do not travel... 08-16-2023, 02:59 PM
akedm Re: Formulas do not travel... 08-21-2023, 12:58 PM
  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    122

    Formulas do not travel between workbooks - they keep pointing to the original source

    Hi,

    I've asked this a while back. I'm asking again because this is a huge failing in Excel, if true. I import a report, and then run my tools against it. My tools are on a sheet.

    Sheet formulas do not travel.jpg

    Why cant Excel understand that I'd like to use the same tools (the same sheet) on a new, similar report. But, no - I have to re-invent the wheel over and over because if I copy my sheet to a new workbook, the formulas do not travel with it - they keep pointing to the original source.

    There has to be a way. I mean this is BASIC business practice. Surely, Excel didn't bungle this basic expectation for every business. I must be missing something.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,273

    Re: Formulas do not travel between workbooks - they keep pointing to the original source

    You can use the link tool (under the data tab) to change the source from workbook 1 to workbook 2.

    If your 'tools' include macros, then you may have a different problem.

    What I sometimes to is select the entire sheet, run the first macro, copy it into the second book, and then run the second macro.

    Sub FormulaToText()
        Dim myCell As Range
        Dim myCalc As Variant
        
        With Application
            .ScreenUpdating = False
            myCalc = .Calculation
            .Calculation = xlCalculationManual
            .EnableEvents = False
        End With
        
        On Error Resume Next
        
        For Each myCell In Selection.SpecialCells(xlCellTypeFormulas)
            If myCell.HasArray Then
                myCell.Formula = "'AF" & myCell.Formula
            Else
                myCell.Formula = "'" & myCell.Formula
            End If
        Next myCell
        
        With Application
            .ScreenUpdating = True
            .Calculation = myCalc
            .EnableEvents = True
        End With
    End Sub
    
    Sub TextToFormula()
        Dim myCell As Range
        Dim myCalc As Variant
        
        With Application
            .ScreenUpdating = False
            myCalc = .Calculation
            .Calculation = xlCalculationManual
            .EnableEvents = False
        End With
        
        On Error Resume Next
        
        For Each myCell In Selection.SpecialCells(xlCellTypeConstants, xlTextValues)
            If Left(myCell.Formula, 1) = "=" Then myCell.Formula = myCell.Text
            If Left(myCell.Formula, 3) = "AF=" Then myCell.FormulaArray = Mid(myCell.Text, 3, Len(myCell.Text))
        Next myCell
        
        With Application
            .ScreenUpdating = True
            .Calculation = myCalc
            .EnableEvents = True
        End With
    End Sub
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Formulas do not travel between workbooks - they keep pointing to the original source

    Ok - Good options. I tried using that 'link tool' to no effect before. But I'll try it again, and your other suggestions too. Thank you so much!

+ 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. Counting a travel day as half if travel starts before specific time
    By akesupport in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2018, 10:37 AM
  2. Searchable Travel Spreadsheet, Help with Nesting Existing Formulas
    By iflynething1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 8
    Last Post: 08-09-2018, 06:01 PM
  3. [SOLVED] How to copy formulas to new workbook without referencing original source
    By TPS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 08:47 PM
  4. Consolidate formulas pointing to other formulas into one
    By weeble33 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 12:22 PM
  5. [SOLVED] VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource data
    By dastr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2013, 06:58 AM
  6. [SOLVED] Linked network workbooks revert to pointing at my hard drive
    By Phil Davy in forum Excel General
    Replies: 0
    Last Post: 06-05-2006, 08:45 AM
  7. [SOLVED] Display 2 formulas from source workbooks to destination workbooks
    By Excel_seek_help in forum Excel General
    Replies: 4
    Last Post: 04-27-2006, 03:20 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