Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default prevent changes to cell references when copying and pasting

I have an Excel workbook where cells in a column in Sheet 2 refer to the
corresponding cell in Sheet 1. However, when my colleages cut and paste data
in Sheet 1, it creates #ref errors in the second sheet where the formulae
adapt to the moving cells. There must be a way where I can lock the formulae
so when data is moved out of a cell, the formula doesn't "follow" it. Any
ideas? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default prevent changes to cell references when copying and pasting

The only way to prevent cell references from changes from changing when the target cells are
moved is via INDIRECT.

= INDIRECT("'Sheet1'!A1")

Note that the cell reference must be inside the quotes. Don't use =
INDIRECT("'Sheet1'!"A1). The apostrophes are there in case the sheet name contains
spaces -- they can be omitted if it doesn't.
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"MiChaos" wrote in message
...
I have an Excel workbook where cells in a column in Sheet 2 refer to the
corresponding cell in Sheet 1. However, when my colleages cut and paste data
in Sheet 1, it creates #ref errors in the second sheet where the formulae
adapt to the moving cells. There must be a way where I can lock the formulae
so when data is moved out of a cell, the formula doesn't "follow" it. Any
ideas? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default prevent changes to cell references when copying and pasting

If you don't want the formulas to adjust, copy them as text:

Select the range to copy
edit|Replace
what: = (equal sign)
with: $$$$$=
replace all

Now do the copy|paste

And then a couple more edit|replaces to change $$$$$= back to = (in both the
original range and the pasted range).




MiChaos wrote:

I have an Excel workbook where cells in a column in Sheet 2 refer to the
corresponding cell in Sheet 1. However, when my colleages cut and paste data
in Sheet 1, it creates #ref errors in the second sheet where the formulae
adapt to the moving cells. There must be a way where I can lock the formulae
so when data is moved out of a cell, the formula doesn't "follow" it. Any
ideas? Thanks.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Spreadsheet with Cell References Into A Different Workbook MonkeyHanger Excel Discussion (Misc queries) 1 March 28th 07 03:09 PM
How to control cell references when copying a formula? rmmshost Excel Discussion (Misc queries) 8 February 23rd 07 08:04 PM
Prevent Row Height from increasing when Pasting lenghthy text into Cell. Hal Excel Worksheet Functions 3 August 25th 06 10:23 PM
Copying and Pasting a cell with a constant number DenDz Excel Worksheet Functions 2 May 31st 06 07:57 PM
Copying linked cell references. Shams Excel Worksheet Functions 0 February 3rd 05 01:53 PM


All times are GMT +1. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"