Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Why does "cut and paste" cause #REF! errors?

Hi,

This really has nothing to do with pasting between sheets, try this:

In cell A1 enter the formula =A2

Now select B1 and cut and paste it on A2. Cell A1 will return a ref error.
This is Excel's correct behavior.

Depending on what you are trying to do you could use Copy and Paste instead.
You can keep the references fixed by making them absolute before you copy,
$A$6, for example.

Cheers,
Shane Devenshire
Microsoft Excel MVP

"miket" wrote in message
...
My situation is as follows:

Sheet1!A1:Sheet1!A6 contain six numeric values, say 1 through 6,
respectively.

Sheet2!A1:Sheet2!A3 contain three cell references to Sheet1!A1 through
Sheet1!A3, respectively.

When I cut cells Sheet1!A4:Sheet1!A6 and paste them over
Sheet1!A1:Sheet1!A3
all the cell references on Sheet2 get replaced with "=Sheet1!#REF!".

If I perform the same operation by copying the data (rather than cutting
it), pasting, then deleting the copied data I get the expected
behavior--seeing the new data for cells Sheet1!A1:Sheet1!A3 appear by
reference on Sheet2 in the proper cells.

I also noticed that if I use a cut operation I cannot "Paste Special" but
if
I use a copy operation I can.

I referenced the help on this error. From the "Correct a #REF! error"
help
page:

"You may have deleted cells that were referred to by other formulas, or
you
may have pasted cells that you moved on top of cells that were referred to
by
other formulas."

So that tells me that I will see the behavior I am seeing, but it does not
tell me why. Interestingly, this statement would lead me to believe that
if
I highlighted cells Sheet1!A1:Sheet1!A3 and pressed the delete key I
should
get a #REF! error on each of cells in the range Sheet2!A1:Sheet2!A3; this,
however, is not the case.

I don't understand why cut operations are treated fundamentally different
than copy operations in Excel. Isn't cut just a copy followed by a delete
of
the original data? Yet if I do a copy followed by delete I see
dramatically
different behavior.

Thanks in advance.

mike


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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How do I "paste link", and "transpose" at the same time? Zhi Sheng Excel Discussion (Misc queries) 3 August 5th 08 02:40 AM
problem with Linking workbooks via "copy" and "paste link" Arkitek Excel Discussion (Misc queries) 0 December 19th 06 10:03 PM
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


All times are GMT +1. The time now is 12:27 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"