A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

HOW CAN I PROTECT A FORMULA IN EXCEL



 
 
Thread Tools Display Modes
  #1  
Old August 13th, 2006, 07:31 AM posted to microsoft.public.excel.misc
Kingsley
external usenet poster
 
Posts: 4
Default HOW CAN I PROTECT A FORMULA IN EXCEL

I have 2 questions. I have a formula in a cell and want to copy it to an
adjacent cell without the formula changing based on the cell location. Ex:
In A1 I have the formula =M1+T1, when I copy this to B1 it changes the
formula to N1+U1, if I copy it to A2 it changes it to M2+T2. How can I copy
the cell without changing the formula ?
My second question is I have a cell with the formula =D1. When I drag or cut
another cell into D1 it changes the formula to =#REF!. Is there a way to
maintain the original formula of =D1 ?
  #2  
Old August 13th, 2006, 07:37 AM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 1
Default HOW CAN I PROTECT A FORMULA IN EXCEL

Hi Kingsley,

Use the function key F4 when typing your formula in order to get
absolute references,
such as =$M$1+$T$1 or =$D$1 ...

HTH
Cheers
Carim

  #3  
Old August 13th, 2006, 07:55 AM posted to microsoft.public.excel.misc
Kingsley
external usenet poster
 
Posts: 4
Default HOW CAN I PROTECT A FORMULA IN EXCEL

Thank you. This worked for the first problem, but not for the second. When I
drag another cell, or cut a cell and paste it, into the referenced cell it
still changes the formula to #REF!

" wrote:

Hi Kingsley,

Use the function key F4 when typing your formula in order to get
absolute references,
such as =$M$1+$T$1 or =$D$1 ...

HTH
Cheers
Carim


  #4  
Old August 13th, 2006, 11:35 AM posted to microsoft.public.excel.misc
RagDyeR
external usenet poster
 
Posts: 3,482
Default HOW CAN I PROTECT A FORMULA IN EXCEL

Try this:

=INDIRECT("D1")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kingsley" wrote in message
...
Thank you. This worked for the first problem, but not for the second. When

I
drag another cell, or cut a cell and paste it, into the referenced cell it
still changes the formula to #REF!

" wrote:

Hi Kingsley,

Use the function key F4 when typing your formula in order to get
absolute references,
such as =$M$1+$T$1 or =$D$1 ...

HTH
Cheers
Carim



  #5  
Old August 13th, 2006, 01:08 PM posted to microsoft.public.excel.misc
scottfoxall
external usenet poster
 
Posts: 33
Default HOW CAN I PROTECT A FORMULA IN EXCEL

In front of the constant cell value place the dollar sign in your formula.

example:
$M1+$T1

to totally fix the formula:
$M$1+$T$1

"Kingsley" wrote:

I have 2 questions. I have a formula in a cell and want to copy it to an
adjacent cell without the formula changing based on the cell location. Ex:
In A1 I have the formula =M1+T1, when I copy this to B1 it changes the
formula to N1+U1, if I copy it to A2 it changes it to M2+T2. How can I copy
the cell without changing the formula ?
My second question is I have a cell with the formula =D1. When I drag or cut
another cell into D1 it changes the formula to =#REF!. Is there a way to
maintain the original formula of =D1 ?

  #6  
Old August 13th, 2006, 01:11 PM posted to microsoft.public.excel.misc
Kingsley
external usenet poster
 
Posts: 4
Default HOW CAN I PROTECT A FORMULA IN EXCEL

Thank you, this worked great!! I have an additional question, When I drag a
new cell into the referenced cell a box pops up and asks me if I want to
replace the contents of the destination cell and I have to click yes or
cancel. Is there a way to turn this off so the update is automatic ?

"Ragdyer" wrote:

Try this:

=INDIRECT("D1")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kingsley" wrote in message
...
Thank you. This worked for the first problem, but not for the second. When

I
drag another cell, or cut a cell and paste it, into the referenced cell it
still changes the formula to #REF!

" wrote:

Hi Kingsley,

Use the function key F4 when typing your formula in order to get
absolute references,
such as =$M$1+$T$1 or =$D$1 ...

HTH
Cheers
Carim




  #7  
Old August 13th, 2006, 04:12 PM posted to microsoft.public.excel.misc
RagDyeR
external usenet poster
 
Posts: 3,482
Default HOW CAN I PROTECT A FORMULA IN EXCEL

Try this:

Tools Options Edit tab,
And *UNCHECK* the obvious:
"Alert Before Overwriting Cells"

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Kingsley" wrote in message
...
Thank you, this worked great!! I have an additional question, When I drag

a
new cell into the referenced cell a box pops up and asks me if I want to
replace the contents of the destination cell and I have to click yes or
cancel. Is there a way to turn this off so the update is automatic ?

"Ragdyer" wrote:

Try this:

=INDIRECT("D1")

--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"Kingsley" wrote in message
...
Thank you. This worked for the first problem, but not for the second.

When
I
drag another cell, or cut a cell and paste it, into the referenced

cell it
still changes the formula to #REF!

" wrote:

Hi Kingsley,

Use the function key F4 when typing your formula in order to get
absolute references,
such as =$M$1+$T$1 or =$D$1 ...

HTH
Cheers
Carim





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.