+ Reply to Thread
Results 1 to 4 of 4

Copy formulas from one spreadsheet to another keeping the original sheet cell reference

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    8

    Copy formulas from one spreadsheet to another keeping the original sheet cell reference

    I have a workbook in Excel 2003 with multiple worksheets, with each sheet for the most part representing each salesman. Off to the side I have a range of cells that have formulas that are based on that salesman's sales for the month. The formulas are used to compute a sales managers commission.

    I want to move the range of cells from each salesman's individual spreadsheet to the manager's sheet, but in so doing I want the formulas to continue to reference the original cells in each salesman's sheets.

    In other words, in Salesman 1's worksheet Cells U4:AB28 contain formulas based on data in Salesman 1's Cells A4:S28. Because each salesman can see his/her individual sheet and I don't want him/her to see the computation of the manager's commission I want to move the formulas in Salesman 1's cells U4:AB28 to the manager's sheet, but want the formulas after moving to continue to reference cells on Salesman 1's sheet.

    Can I do that without doing extensive re-typing?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Copy formulas from one spreadsheet to another keeping the original sheet cell referenc

    A bit of a workaround this..

    - Create a copy of the salesperson sheet
    - Cut (not copy) the desired range from this duplicate sheet
    - Paste to the manager's sheet desired location
    - Select the pasted range and do a Find + Replace (Ctrl+H) to change references (for instance, might be something on these lines.. Find: 'salesperson1' replace with 'salesperson1 (1)'
    - Delete the duplicate sheet

    Does this help?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Copy formulas from one spreadsheet to another keeping the original sheet cell referenc

    Yes

    If you cut/and paste a formula rather than copy/and paste a formula, Excel will keep the proper references in the new location

    Another approach:
    You could put the formula to one side of the workbook and make the compution for a sales managers commission in white font {So it is not visible}. You could format the cell(s) containing the sales managers commission formula as protected and protect the worksheet those cells can not be selected

    Better approach:
    Make a separate workbook that references this workbook. The separate workbook would contain the formulas for sales managers commission. That way, people not needing the information would not have access
    Click on star (*) below if this helps

  4. #4
    Registered User
    Join Date
    09-15-2012
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    8

    Re: Copy formulas from one spreadsheet to another keeping the original sheet cell referenc

    Thanks Ace_XL and K m.

    I had gotten the formulas to the managers sheet and had considered the Find & Replace option, but because of too many salespersons and too many cells referenced I had decided that was going to take too long.

    The idea of the white font and the protection for the cells could work, although I know my boss would still be concerned with someone stumbling upon the formulas at some point.

    K m, your second suggestion of the separate workbook would probably work best - keeping the security of the calculation of the manager's commission from the salesman, and maybe more importantly from the other managers.

    thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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