Enter data in cell, but keep formula as well.

ultrawat

New Member
Joined
Nov 7, 2005
Messages
47
I think I have seen this done, but I dont know how.

I would like to have a formula in a particluar cell which can be over-written by typing in data......but.... if the data is deleted, the formula 're-appears'....

Any advice would be greatly appreciated......
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Are you talking about the undo option ? Ctrl+Z ?
I am sorry incase I did not understand your question :eek:
 
Upvote 0
You would have to use code - specifically the worksheet_change event - to monitor the cell for changes and re-enter the formula if the cell is blank
 
Upvote 0
You would have to use code - specifically the worksheet_change event - to monitor the cell for changes and re-enter the formula if the cell is blank

Ahaa ! This never struck my mind though ! Yes to OP, you can do it !!!
 
Upvote 0
Maybe you could use the event with a hidden sheet containing the formulas? Or perhaps temporarily store them in the comment field, although you'd need code to dump them all there before you started, as I think once the worksheet_change event is activated, you've already lost the previous cell content.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,492
Members
448,967
Latest member
visheshkotha

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