Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 345
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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?




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
lock cells based on formula result MIke Excel Discussion (Misc queries) 1 October 26th 07 03:24 PM
Lock formula cells? EllenM Excel Discussion (Misc queries) 5 June 20th 07 09:04 PM
Need formula that will sum cells in a column bases on criteria in other cells. Jim Excel Worksheet Functions 3 February 18th 06 03:33 PM
How to lock a column Patty via OfficeKB.com Excel Discussion (Misc queries) 1 September 23rd 05 06:57 PM
Lock Column Shobhit Bhatnagar Excel Discussion (Misc queries) 6 May 14th 05 03:53 PM


All times are GMT +1. The time now is 01:13 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"