#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default portected cells

I have created spreadsheets with unprotected areas for data entry. The data
is used in formulas in protected cells. If the user enters data in the wrong
cell and moves it to the correct cell, the formulas are changed. Is there
any way to prevent the corruption of the formulas by the users action?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default portected cells

cell protection doesn't help you to solve your problem. Maybe you can make
your formulas more robust.
Example: Lets assume that your unprotected cells A1 and A2 contain the
values 1 and 2. Your protected cells B1 and B2 contain the formulas A1*2 and
A2*2. If the user moves the contents of A2 to A1, your formula in B1 will
produce an error. However if your formulas in B1 and B2 would read
=OFFSET(B1,0,-1)*2 and =OFFSET(B2,0,-1)*2, then moving cells in A1:A2 would
still produce correct results since the formulas point to cells positions
(which are fixed) rather than cell addresses (which are overwritten by move
operations).

Cheers,
Joerg Mochikun

"John Folwell" wrote in message
...
I have created spreadsheets with unprotected areas for data entry. The
data
is used in formulas in protected cells. If the user enters data in the
wrong
cell and moves it to the correct cell, the formulas are changed. Is there
any way to prevent the corruption of the formulas by the users action?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default portected cells

Thank you. That is certainly a viable solution. However in a large complex
spread sheet where the fill function is used extensively to create formulas
this would make creating an idiot proof application extremely tedious. Why
isnt there another level of protection to keep formulas uncorruptable? I
can probably use your idea in a workaround. Thanks again.

"Joerg Mochikun" wrote:

cell protection doesn't help you to solve your problem. Maybe you can make
your formulas more robust.
Example: Lets assume that your unprotected cells A1 and A2 contain the
values 1 and 2. Your protected cells B1 and B2 contain the formulas A1*2 and
A2*2. If the user moves the contents of A2 to A1, your formula in B1 will
produce an error. However if your formulas in B1 and B2 would read
=OFFSET(B1,0,-1)*2 and =OFFSET(B2,0,-1)*2, then moving cells in A1:A2 would
still produce correct results since the formulas point to cells positions
(which are fixed) rather than cell addresses (which are overwritten by move
operations).

Cheers,
Joerg Mochikun

"John Folwell" wrote in message
...
I have created spreadsheets with unprotected areas for data entry. The
data
is used in formulas in protected cells. If the user enters data in the
wrong
cell and moves it to the correct cell, the formulas are changed. Is there
any way to prevent the corruption of the formulas by the users action?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default portected cells

Idiot-creation far outstrips Idiot-proofing


Gord Dibben MS Excel MVP

On Thu, 28 May 2009 09:30:01 -0700, John Folwell
wrote:

Thank you. That is certainly a viable solution. However in a large complex
spread sheet where the fill function is used extensively to create formulas
this would make creating an idiot proof application extremely tedious. Why
isn’t there another level of protection to keep formulas uncorruptable? I
can probably use your idea in a workaround. Thanks again.

"Joerg Mochikun" wrote:

cell protection doesn't help you to solve your problem. Maybe you can make
your formulas more robust.
Example: Lets assume that your unprotected cells A1 and A2 contain the
values 1 and 2. Your protected cells B1 and B2 contain the formulas A1*2 and
A2*2. If the user moves the contents of A2 to A1, your formula in B1 will
produce an error. However if your formulas in B1 and B2 would read
=OFFSET(B1,0,-1)*2 and =OFFSET(B2,0,-1)*2, then moving cells in A1:A2 would
still produce correct results since the formulas point to cells positions
(which are fixed) rather than cell addresses (which are overwritten by move
operations).

Cheers,
Joerg Mochikun

"John Folwell" wrote in message
...
I have created spreadsheets with unprotected areas for data entry. The
data
is used in formulas in protected cells. If the user enters data in the
wrong
cell and moves it to the correct cell, the formulas are changed. Is there
any way to prevent the corruption of the formulas by the users action?





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: match two cells in one sheet to two cells in another and return a third cells value Spence Excel Worksheet Functions 3 February 13th 11 05:33 AM
Cells won't change font color or show hi-lighted cells in document ROBIN Excel Discussion (Misc queries) 1 March 27th 08 09:39 PM
display a range of cells editible cells based on matching date Miki Excel Worksheet Functions 0 October 10th 07 03:27 PM
Setting of input cells as blue font and formula cells as black fon Sunnyskies Excel Discussion (Misc queries) 2 May 14th 07 05:27 PM
trying to create an (almost) circular formula between cells and data validated cells with lists KR Excel Worksheet Functions 0 May 12th 05 07:21 PM


All times are GMT +1. The time now is 07:20 PM.

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

About Us

"It's about Microsoft Excel"