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

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
74
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
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,204
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,108,950
Messages
5,525,822
Members
409,665
Latest member
Jessyi

This Week's Hot Topics

Top