Forum Discussion

SteveWalsh123's avatar
SteveWalsh123
Copper Contributor
Jan 22, 2024
Solved

Enter date when cell updated

I've got a spreadsheet that we're using as an action tracker. I want to automatically update a cell to show the date an issue was raised. I know this can be done with VBA or using the following ( t...
  • NikolinoDE's avatar
    NikolinoDE
    Jan 22, 2024

    SteveWalsh123 

    I understand the limitation you are facing with Excel for the web and SharePoint regarding circular references and dynamic updates without VBA. Unfortunately, Excel formulas alone cannot dynamically update the date without introducing a circular reference or using VBA. The circular reference issue is a limitation of Excel for web and SharePoint, preventing formulas from referring back to themselves. While VBA can provide a solution, it requires scripting expertise and is not user-friendly for shared spreadsheets. Given these constraints, let us explore an alternative approach that involves using a combination of data validation and helper columns:

    1. Helper Column for Initial Entry Date:

      • Create a new column (let's say column D) and use the following formula in cell D28:

    =IF(B28<>"", IF(D28="", TODAY(), D28), "")

      • This formula checks if cell B28 is not blank and if cell D28 is also blank. If both conditions are met, it sets the date to the current date using TODAY(). If either condition is not met, it leaves the existing date in place.

    2. Data Validation to Lock Date:

    • Select cell B28.
    • Go to the "Data" tab.
    • Click "Data Validation."
    • Under the "Settings" tab:
      • Allow: Choose "Date."
      • Criteria: Choose "Greater than or equal to."
      • Start Date: Choose a reasonable date range that covers your expected entry period.
    • Under the "Error Alert" tab, you can set an error message to instruct users that the date is now locked.
      • Apply data validation to cell B28 to prevent further changes once a date is entered:

    This way, users can enter a date in cell B28 only once, and the corresponding date in column D will be set at that time. The data validation in cell B28 will prevent further changes.

    Please test this approach in your specific setup to ensure it meets your requirements. Keep in mind that users can potentially bypass data validation rules by copying and pasting values, so it's essential to communicate the intended usage guidelines to the users of the spreadsheet.

     

    Alternative, to achieve dynamic date updating without circular references or VBA, you need to consider external applications like 3rt party AddIns or services that can communicate with Excel and update the date accordingly.

Resources