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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lock a formula to a column of cells



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2009, 01:37 AM posted to microsoft.public.excel.worksheet.functions
dragons_lair
external usenet poster
 
Posts: 13
Default Lock a formula to a column of cells

I have a running balance total but as other users access this form they
inadvertently delete the formula or add more rows than have been allowed. I
can use data protection for the form but this then creates problem if they
need to add additional rows. Is there any way I can set the formula to appear
automatically in the cell such as data validation?

  #2  
Old May 20th, 2009, 04:11 AM posted to microsoft.public.excel.worksheet.functions
Joe Nastasi
external usenet poster
 
Posts: 1
Default Lock a formula to a column of cells

This is not exactly what you are asking for... but you can lock only the
cell with formula by selecting all the cells in the worksheet, then select
"Format.Cells.Protection" and uncheck the "Locked" checkbox... then go to
the cell with your formula and select "Format.Cells.Protection" and check
the "Locked" checkbox to re-lock the cell with your formula.

Then go to Tools.Protection.Protect Worksheet" and check the box that says
"Insert Rows" under the heading "Allow all users" then all your users will
be able to insert rows and change all cells but your formula cell.

If you want to make sure the formula sums all rows above the row with your
formula (in case users insert extra rows), then you can use the following:
=SUM(INDIRECT(ADDRESS(1,COLUMN())):INDIRECT(ADDRES S(ROW()-1,COLUMN())))

"dragons_lair" wrote in message
...
I have a running balance total but as other users access this form they
inadvertently delete the formula or add more rows than have been allowed.
I
can use data protection for the form but this then creates problem if they
need to add additional rows. Is there any way I can set the formula to
appear
automatically in the cell such as data validation?



  #3  
Old May 20th, 2009, 09:16 AM posted to microsoft.public.excel.worksheet.functions
Ron@Buy
external usenet poster
 
Posts: 348
Default Lock a formula to a column of cells

Another option to Joe's formula where you can control the range of rows to
sum is:
=SUM(A$6:INDEX(A:A,ROW()-1))



"Joe Nastasi" wrote:

This is not exactly what you are asking for... but you can lock only the
cell with formula by selecting all the cells in the worksheet, then select
"Format.Cells.Protection" and uncheck the "Locked" checkbox... then go to
the cell with your formula and select "Format.Cells.Protection" and check
the "Locked" checkbox to re-lock the cell with your formula.

Then go to Tools.Protection.Protect Worksheet" and check the box that says
"Insert Rows" under the heading "Allow all users" then all your users will
be able to insert rows and change all cells but your formula cell.

If you want to make sure the formula sums all rows above the row with your
formula (in case users insert extra rows), then you can use the following:
=SUM(INDIRECT(ADDRESS(1,COLUMN())):INDIRECT(ADDRES S(ROW()-1,COLUMN())))

"dragons_lair" wrote in message
...
I have a running balance total but as other users access this form they
inadvertently delete the formula or add more rows than have been allowed.
I
can use data protection for the form but this then creates problem if they
need to add additional rows. Is there any way I can set the formula to
appear
automatically in the cell such as data validation?




  #4  
Old May 21st, 2009, 02:53 AM posted to microsoft.public.excel.worksheet.functions
dragons_lair
external usenet poster
 
Posts: 13
Default Lock a formula to a column of cells

Thanks for the info, not quite what I was after but I did learn a new formula
which has proved very useful
--
Dragonette


"Joe Nastasi" wrote:

This is not exactly what you are asking for... but you can lock only the
cell with formula by selecting all the cells in the worksheet, then select
"Format.Cells.Protection" and uncheck the "Locked" checkbox... then go to
the cell with your formula and select "Format.Cells.Protection" and check
the "Locked" checkbox to re-lock the cell with your formula.

Then go to Tools.Protection.Protect Worksheet" and check the box that says
"Insert Rows" under the heading "Allow all users" then all your users will
be able to insert rows and change all cells but your formula cell.

If you want to make sure the formula sums all rows above the row with your
formula (in case users insert extra rows), then you can use the following:
=SUM(INDIRECT(ADDRESS(1,COLUMN())):INDIRECT(ADDRES S(ROW()-1,COLUMN())))

"dragons_lair" wrote in message
...
I have a running balance total but as other users access this form they
inadvertently delete the formula or add more rows than have been allowed.
I
can use data protection for the form but this then creates problem if they
need to add additional rows. Is there any way I can set the formula to
appear
automatically in the cell such as data validation?




 




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 09:57 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.