Insert rows in table with protected/locked columns with formulae

LiesvanHouw

New Member
Joined
Jul 17, 2019
Messages
1
Hi all!
I have a tablein Excel in which some columns need to be locked, and other columns need to beunlocked so people can enter data there. The columns that need to stay lockedhave formulae in each cell which use data that is entered in the unlockedcolumns.
Peopleusing the table should be able to insert rows whilst some of the columns remainlocked and the formulae are copied in the newly inserted rows.

I am unableto figure out how to allow for this. Therefore, my question is how can youinsert rows in a table where some of the columns are locked? It is necessarythat the formulae in the locked columns are copied when a new row is inserted.
Does this require a macro?


Any helpwould be much appreciated!
Thanks,
Lies
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If your data is in a table, and the sheet is not protected, then formulas will be copied into the blank row if you right-click on the table and select Insert | Table Rows Above.

You could leave the columns unlocked and use a macro to refresh the formulas in the old and new rows based on a one more workbook/worksheet events (like workbook save or worksheet activate, or calculate). There are other events available that trigger more often, but you probably don't want to have the formulas refreshed each time the selection was changed.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top