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

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
161
Office Version
  1. 2016
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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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