Write-over a formula in a cell using, but preserve the formula.

Tanner_2004

Well-known Member
Joined
Jun 1, 2010
Messages
616
I have a cell with this formula in it; it is actually in a range of cells (I11:K25) but the row number changes.

Code:
=IF($H11="Fully Functional", "N/A","")


The challenge or my questions is how do I preserve/retain the formula in the cell when a user writes over it and them later changes his/her mind and selects "Fully Functional" from a name range list (data validation list)?

Thank you for for reading and any help.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I have a cell with this formula in it; it is actually in a range of cells (I11:K25) but the row number changes.

Code:
=IF($H11="Fully Functional", "N/A","")


The challenge or my questions is how do I preserve/retain the formula in the cell when a user writes over it and them later changes his/her mind and selects "Fully Functional" from a name range list (data validation list)?

Thank you for for reading and any help.

You don't. A cell can contain a value or a formula, not both. While it may be possible to write the previous contents to another sheet (hidden perhaps) when the cell is changed with VBA, Excel cannot recall previous cell contents on it's own.
 
Upvote 0

Forum statistics

Threads
1,225,765
Messages
6,186,902
Members
453,384
Latest member
BigShanny

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