Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy over cell that is part of a formula error

Status
Not open for further replies.

haynewp

Structural
Dec 13, 2000
2,329
Is there any way to avoid the #REF! error if you drag the content of one cell into another cell, and the destination cell is a reference to a formula (and the cell containing the formula now gives #REF! error as a result)? And yes this question is as easy and basic as it seems but I don't have the answer.

It doesn't happen if I hold down CTRL while dragging, but then I have to go back and delete the cell content from the original cell I was dragging from.
 
Replies continue below

Recommended for you

It is a project budget forecast so the numbers are anticipated. The attached is a simple example, where if Mark told me he was going to spend about $100 against my project this past Monday and didn't get around to it, I want to drag (or better yet, use cut and paste in this example) the $100 he still needs to spend down to Monday the 28th.

It doesn't appear to be possible in Excel, I have to copy it down then go back and delete the original value every time.
 
 http://files.engineering.com/getfile.aspx?folder=5b2e9f77-0dc1-419d-8683-15a2ec21a46c&file=Example.pdf
I figured out a way for simple addition, if you use ="SUM()" in the formula locations instead of "=C8+D8+E8..." it works without giving #REF! at the formula locations.
 
That is, values that can be summed as a range:

"=Sum(range:range)" and not "=Sum(D8+E9+F10+E8...etc) or it will trigger the error when dragging contents.
 
Using the Sum function will work in this case (provided you don't paste onto the top or bottom cell of the range), but it really isn't a good idea. When you cut and paste you also move any references to the cut cell, and write over any references in the paste cell (which is why you get the #REF! result).

It's much safer to copy and delete, or delete and re-type.

Doug Jenkins
Interactive Design Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor