SOLVED
Home

Can I delete a cell entry, but lock a cell formula so it's retained?

%3CLINGO-SUB%20id%3D%22lingo-sub-309808%22%20slang%3D%22en-US%22%3ECan%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309808%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20use%20an%20Excel%20work%20sheet%20as%20a%20yearly%20accounts%20ledger%20%2F%20accounts%20book.%20The%20worksheet%20has%2012%20tables%2C%20each%20table%20being%20a%20month%20of%20the%20year.%20Column%20headings%20in%20each%20table%20include%20'Amount%20ex%20VAT'%2C%20'VAT'%20and%20'Total%20including%20VAT'%20(VAT%20%3D%20Value%20Added%20Tax).%20Each%20row%20in%20each%20table%20is%20for%20items%20of%20expenditure.%20Each%20of%20the%20aforementioned%20columns%20will%20contain%20the%20amounts%20for%20each%20row%2C%20and%20each%20column%20will%20have%20a%20total%20at%20the%20bottom%20of%20each%20column.%20The%20idea%20is%20to%20enter%20an%20amount%20in%20a%20cell%20for%20an%20'amount%20ex%20VAT'%20row%2Fcolumn%2C%20then%20in%20the%20'VAT'%20column%2C%20a%20formula%20will%20multiply%20that%20amount%20in%20the%20'amount%20ex%20VAT'%20by%2020%25%20and%20show%20the%20product%20in%20the%20VAT%20cell%2C%20then%20in%20the%20cell%20in%20the%20'total%20including%20VAT'%20row%2Fcolumn%20a%20formula%20will%20add%20together%20the%20amounts%20in%20the%20'amount%20ex%20VAT'%20and%20'VAT'%20and%20represent%20that%20total%20amount%20in%20the%20cell.%20I've%20inputted%20all%20the%20formulas%20in%20the%20relevant%20cells%20and%20it%20all%20works%20perfectly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20the%20problem%20is%20that%20if%20I%20enter%20an%20amount%20in%20a%20cell%20which%20contains%20a%20formula%2C%20and%20then%20need%20to%20change%20the%20amount%20entered%2C%20I%20can%20accidentally%20delete%20the%20amount%20entered%2C%20and%20delete%20the%20formula%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETherefore%2C%20is%20there%20a%20way%20that%20I%20can%20lock%20the%20formulas%20in%20their%20cells%20so%20they%20cannot%20be%20changed%2Fdeleted%20when%20deleting%20a%20number%2Fvalue%20in%20a%20cell%2C%20so%20be%20able%20to%20delete%20a%20cell%20entry%20(e.g.%20an%20entry%20of%20%C2%A320)%20without%20deleting%20the%20cell%20formula%20at%20the%20same%20time%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-309808%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-312286%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-312286%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20done%20the%20trick.%20Thank%20you%20for%20your%20help%2C%20much%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ER%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-311216%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-311216%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20attachment%3C%2FP%3E%0A%3CP%3EYou%20can%20lock%20cells%20from%20accidental%20deletion.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20technique%20is%20to%20actually%20unlock%20the%20cells%20you%20want%20to%20type%20in%20and%20then%20protect%20the%20worksheet%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHighlight%20the%20Amount%20cells%20and%20right%20click%20and%20choose%20Format%20Cells%2C%20then%20go%20to%20the%20Protection%20tab%20and%20uncheck%20the%20Locked%20box%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20551px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64986i00370BF127D5F6A9%2Fimage-dimensions%2F551x334%3Fv%3D1.0%22%20width%3D%22551%22%20height%3D%22334%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20go%20to%20Review%20%26gt%3B%20Protect%20Sheet%20and%20you%20will%20only%20be%20able%20to%20edit%20the%20%22unlocked%22%20cells%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20932px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64987i7B9217CC83ED8E10%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-311214%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-311214%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20attachment%3C%2FP%3E%0A%3CP%3EYou%20can%20lock%20cells%20from%20accidental%20deletion.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20technique%20is%20to%20actually%20unlock%20the%20cells%20you%20want%20to%20type%20in%20and%20then%20protect%20the%20worksheet%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHighlight%20the%20Amount%20cells%20and%20right%20click%20and%20choose%20Format%20Cells%2C%20then%20go%20to%20the%20Protection%20tab%20and%20uncheck%20the%20Locked%20box%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20551px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64986i00370BF127D5F6A9%2Fimage-dimensions%2F551x334%3Fv%3D1.0%22%20width%3D%22551%22%20height%3D%22334%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20go%20to%20Review%20%26gt%3B%20Protect%20Sheet%20and%20you%20will%20only%20be%20able%20to%20edit%20the%20%22unlocked%22%20cells%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20932px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64987i7B9217CC83ED8E10%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-310232%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-310232%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20attached%20an%20example%20(I%20hope%20I've%20managed%20to%20attach%20it%20OK).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20but%20I%20think%20we've%20been%20at%20cross%20purposes.%20You%20can%20see%20in%20the%20sheet%20that%20there%20are%20formulas%20in%20the%20'VAT'%2C%20'Total%20Incl%20VAT'%20and%20'Totals'%20columns%2Frows.%20If%20I%20delete%20an%20entry%20in%20the%20'Amount%20Ex%20VAT'%20column%2C%20there's%20not%20a%20problem%20because%20the%20cells%20in%20that%20column%20contain%20no%20formulas.%20However%2C%20if%20I%20delete%20an%20entry%20in%20cells%20containing%20formulas%2C%20both%20the%20entry%20(e.g.%20%C2%A320%20in%20the%20VAT%20column)%20and%20the%20formula%20are%20deleted%3B%20this%20is%20a%20problem%20because%20when%20busy%2C%20it's%20easy%20to%20accidentally%20delete%20the%20entry%20and%20formula%20when%20just%20the%20entry%20was%20meant%20to%20be%20deleted.%20Therefore%2C%20can%20I%20lock%20(for%20want%20of%20a%20better%20word)%20cells%20with%20formulas%20so%20that%20the%20entry%20can%20be%20deleted%20while%20leaving%20the%20cell%20formula%20untouched%2Fin%20place%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ER%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-310201%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-310201%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EIt%20would%20help%20if%20you%20could%20attach%20an%20example%20but%20essentially%20if%20your%20formula%20is%20%3DA1%20x%2010%25%26nbsp%3B%20and%20you%20want%20to%20add%2020%20then%20rather%20than%20adding%20the%2020%20to%20the%20formula%26nbsp%3B%20%26nbsp%3B%3D%20A1%20x%2010%20%2B20%26nbsp%3B%20%26nbsp%3Byou%20should%20put%20the%2020%20in%20cell%20B1%20and%20the%20formula%20would%20be%26nbsp%3B%20A1%20x%2010%20%2B%20B1%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-310186%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-310186%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Mr%20Hopkins%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20what%20you%20might%20call%20a%20basic%20user%20of%20Excel%2C%20so%20only%20have%20limited%20knowledge%20of%20its%20functionality.%20What%20is%20a%20reference%20cell%20please%2C%20and%20how%20would%20I%20set%20it%20up%20in%20the%20way%20you%20refer%20to%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ER%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-310040%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20delete%20a%20cell%20entry%2C%20but%20lock%20a%20cell%20formula%20so%20it's%20retained%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-310040%22%20slang%3D%22en-US%22%3EHi%20Reboot%2C%20so%20just%20to%20clarify%20you%20want%20to%20add%20an%20extra%20amount%20into%20a%20cell%20that%20contains%20a%20formula%20and%20then%20change%20that%20amount%20but%20avoid%20deleting%20the%20formula%20part%20of%20cell%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20that's%20the%20case%20my%20initial%20suggestion%20would%20be%20to%20add%20a%20reference%20to%20an%20input%20cell%20in%20your%20formula%20and%20then%20you%20never%20need%20to%20touch%20that%20formula%20again.%20The%20input%20cell%20would%20then%20have%20the%20entry%20of%2020%20or%200%20etc.%3C%2FLINGO-BODY%3E
Reboot
Occasional Contributor

Hi

 

I use an Excel work sheet as a yearly accounts ledger / accounts book. The worksheet has 12 tables, each table being a month of the year. Column headings in each table include 'Amount ex VAT', 'VAT' and 'Total including VAT' (VAT = Value Added Tax). Each row in each table is for items of expenditure. Each of the aforementioned columns will contain the amounts for each row, and each column will have a total at the bottom of each column. The idea is to enter an amount in a cell for an 'amount ex VAT' row/column, then in the 'VAT' column, a formula will multiply that amount in the 'amount ex VAT' by 20% and show the product in the VAT cell, then in the cell in the 'total including VAT' row/column a formula will add together the amounts in the 'amount ex VAT' and 'VAT' and represent that total amount in the cell. I've inputted all the formulas in the relevant cells and it all works perfectly.

 

However, the problem is that if I enter an amount in a cell which contains a formula, and then need to change the amount entered, I can accidentally delete the amount entered, and delete the formula as well.

 

Therefore, is there a way that I can lock the formulas in their cells so they cannot be changed/deleted when deleting a number/value in a cell, so be able to delete a cell entry (e.g. an entry of £20) without deleting the cell formula at the same time?

 

Thanks 

7 Replies
Hi Reboot, so just to clarify you want to add an extra amount into a cell that contains a formula and then change that amount but avoid deleting the formula part of cell?

If that's the case my initial suggestion would be to add a reference to an input cell in your formula and then you never need to touch that formula again. The input cell would then have the entry of 20 or 0 etc.

Hi Mr Hopkins

 

Thank you for your reply.

 

I'm what you might call a basic user of Excel, so only have limited knowledge of its functionality. What is a reference cell please, and how would I set it up in the way you refer to?

 

Thanks

 

R

Highlighted

Hi

It would help if you could attach an example but essentially if your formula is =A1 x 10%  and you want to add 20 then rather than adding the 20 to the formula   = A1 x 10 +20   you should put the 20 in cell B1 and the formula would be  A1 x 10 + B1

 

 

Hi

 

Please find attached an example (I hope I've managed to attach it OK).

 

I'm not sure but I think we've been at cross purposes. You can see in the sheet that there are formulas in the 'VAT', 'Total Incl VAT' and 'Totals' columns/rows. If I delete an entry in the 'Amount Ex VAT' column, there's not a problem because the cells in that column contain no formulas. However, if I delete an entry in cells containing formulas, both the entry (e.g. £20 in the VAT column) and the formula are deleted; this is a problem because when busy, it's easy to accidentally delete the entry and formula when just the entry was meant to be deleted. Therefore, can I lock (for want of a better word) cells with formulas so that the entry can be deleted while leaving the cell formula untouched/in place?

 

Thanks

 

R

Solution

Hi 

 

Thanks for the attachment

You can lock cells from accidental deletion.

 

The technique is to actually unlock the cells you want to type in and then protect the worksheet

 

Highlight the Amount cells and right click and choose Format Cells, then go to the Protection tab and uncheck the Locked box

 

image.png

 

Then go to Review > Protect Sheet and you will only be able to edit the "unlocked" cells

 

image.png

 

 

 

Hi 

 

Thanks for the attachment

You can lock cells from accidental deletion.

 

The technique is to actually unlock the cells you want to type in and then protect the worksheet

 

Highlight the Amount cells and right click and choose Format Cells, then go to the Protection tab and uncheck the Locked box

 

image.png

 

Then go to Review > Protect Sheet and you will only be able to edit the "unlocked" cells

 

image.png

 

 

 

Hi

 

That's done the trick. Thank you for your help, much appreciated.

 

Cheers

 

R

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies