Microsoft KB Archive/231635

= XL97: Copying and Pasting Noncontiguous Range Loses Formulas =

Article ID: 231635

Article Last Modified on 10/21/2000

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q231635





SYMPTOMS
When you copy and paste cells, copied formulas are pasted as static values; the formulas are not copied.



CAUSE
This problem occurs when you copy cells that are not one contiguous range of cells. For example, you select the range A1:A5, C1:C5, copy the cells, and paste them all as one block in cell D1.



WORKAROUND
To copy cells and retain their formulas, use either of the following methods.

Method 1: Paste Special Formulas
Instead of using the Paste command, use the Paste Special command on the Edit menu, and click Formulas under the Paste options.

NOTE: This method will not copy any of the original formatting. To apply formatting, with the target cells still selected, click Paste Special on the Edit menu, and click Formatting under the Paste options.

Method 2: Copy Each Range Separately
Copy blocks of cells that are contiguous. For example, if you need to copy cells A1:A5 and C1:C5 to cell D1, follow these steps:
 * 1) Select A1:A5 and click Copy.
 * 2) Click cell D1 and click Paste.
 * 3) Select C1:C5 and click Copy.
 * 4) Click cell E1 and click Paste.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
You can copy and paste nonadjacent cells of the same size in a single operation, by holding down CTRL as you click cells. For example, you can copy the ranges A1:A5 and C1:C5 in one operation, but not the ranges A1:A5 and C1:C4, because both contiguous blocks of cells must contain the same number of rows and columns.

However, if you do copy noncontiguous blocks of cells that contain formulas, Excel converts these formulas to static values when pasting them to the destination cells. If you need to copy ranges of cells that are not contiguous blocks of cells, copy and paste each contiguous block separately.

Additional query words: OFF2000 XL2000

Keywords: kbbug kbpending KB231635

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.