Results 1 to 2 of 2

Thread: Protect formula in a cell but allow data entry and clear content
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jul 2018
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

    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

  2. #2
    MrExcel MVP
    Join Date
    May 2009
    Posts
    16,487
    Post Thanks / Like
    Mentioned
    37 Post(s)
    Tagged
    8 Thread(s)

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

    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.
    Joe

    When I was a young man I knew everything. Now that I'm older, I realize I know very little, and what I do know, I tend to forget!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •