+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Keep Cell Formula After User Hits "Delete" Key

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    phoenix, arizona
    MS-Off Ver
    Excel 2007
    Posts
    53

    Keep Cell Formula After User Hits "Delete" Key

    My cell formula, =IF(OR(B61<>"",C61<>"",D61<>""),"When Approved, Enter Commit Date","") appears to be working fine. I get the message in the cell when criteria is met. And I have a data validation on cell M61 to ensure I get a good date for that cell. When a bad date is entered into cell M61, the validation works perfect and the User is prevented from entering a bad date. The problem is:

    When a User hits the "DELETE" key, the formula message is erased. Or, when a User enters a valid date and then decides to delete the date (using DELETE key), the cell is now empty and no longer displays the formula message. My intent is to either have my formula message in the cell, or, have a valid date in the cell. Can someone help?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Keep Cell Formula After User Hits "Delete" Key

    You can't really mix formulae & constants without interjecting some VBA.

    I would thus suggest either moving the in-cell formula notification to an adjacent cell or modifying the DV rule such that it permits only a valid date when your existing IF is satisfied, e.g:

    Please Login or Register  to view this content.
    the above simply states that M61 entry must be within the last 30 days and that none of B61:D61 are Blank/Null.

    It should be noted that the Validation rule is only ever applied at point of entry. For ex. were B61:D61 non-blank and M61 assigned a valid date and the user then deletes content of B61 this would not force M61 to then flag as invalid.

  3. #3
    Registered User
    Join Date
    07-26-2011
    Location
    phoenix, arizona
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Keep Cell Formula After User Hits "Delete" Key

    Thank you very much. I understand better now, and thank you for the example because that really helped!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1