Help!

Prevent function errors caused by cutting & paste or drag ..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  Outlook Inbox Bi-Directional Connectivity  
Author Message
Learning More Each Day
External


Since: Nov 02, 2009
Posts: 1



PostPosted: Mon Nov 02, 2009 12:09 pm    Post subject: Prevent function errors caused by cutting & paste or drag & drop
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I have assembled a function on a worksheet that references cells in the
worksheet. The worksheet is a living document. Changes are often made by
cutting and pasting or dragging and dropping a cell value from one place to
another, which always causes errors in the associated cells. Example: A
function may reference cell C2. If I drag (move) the contents of C2 to E2,
the function cell reference for C2 changes to the error #REF. Is there a way
to make the function reference C2 before and after contents are dragged
(moved) to a different location?
Back to top
Tom Hutchins
External


Since: Jul 25, 2006
Posts: 123



PostPosted: Mon Nov 02, 2009 1:42 pm    Post subject: RE: Prevent function errors caused by cutting & paste or drag & drop [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can replace C2 in your formula with INDIRECT("C2") and it will always
refer to row 2 in column C.

Hope this helps,

Hutch

"Learning More Each Day" wrote:

> I have assembled a function on a worksheet that references cells in the
> worksheet. The worksheet is a living document. Changes are often made by
> cutting and pasting or dragging and dropping a cell value from one place to
> another, which always causes errors in the associated cells. Example: A
> function may reference cell C2. If I drag (move) the contents of C2 to E2,
> the function cell reference for C2 changes to the error #REF. Is there a way
> to make the function reference C2 before and after contents are dragged
> (moved) to a different location?
Back to top
Glenn
External


Since: Jan 12, 2009
Posts: 75



PostPosted: Mon Nov 02, 2009 2:27 pm    Post subject: Re: Prevent function errors caused by cutting & paste or drag & drop [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Learning More Each Day wrote:
> I have assembled a function on a worksheet that references cells in the
> worksheet. The worksheet is a living document. Changes are often made by
> cutting and pasting or dragging and dropping a cell value from one place to
> another, which always causes errors in the associated cells. Example: A
> function may reference cell C2. If I drag (move) the contents of C2 to E2,
> the function cell reference for C2 changes to the error #REF. Is there a way
> to make the function reference C2 before and after contents are dragged
> (moved) to a different location?


=INDIRECT("C2")
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum