Protect formula in a cell but allow data entry and clear content

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
164
Office Version
  1. 365
Platform
  1. Windows
Hi,

I presently have a vlookup formula in a cell but I need to be able to write in that cell if there is no info returned from the vlookup

present vlookup formula: VLOOKUP(Sheet3!I5,Sheet13!1:3000,6,False)

that formula does not always return info (incomplete info data sheet) so I need to be able to write in the cell the required info. I also need to be able to clear the content of the cell without deleting the formula as the template sheet is reusable.

any help would be appreciated

thank you
Dan
 

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
You can't clear the contents of a formulaic cell w/0 deleting the formula. You could use VBA to monitor the cell whenever the formula calculates and if the calculation results in an error, as would be the case if your Vlookup formula can't find an exact match, change the cell to something you want to write to it. Of course, that would also remove the formula.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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