To do this, you’ll need a macro. I’ve tried one and you can copy-paste it into your VBA editor. Follow these steps:
1. Open your excel file or a new excel file. Open the VBA editor (press Alt + F11).
2. You’ll find in the left pane “Project Explorer”. If you don’t see it, make it from menu: View-> Project Explorer (Ctrl + R).
3. Now, decide how you want this to happen. I mean, you can do this to a particular sheet or all sheets in your workbook.
i) For a particular worksheet (1 worksheet):
Double click the sheet, that you’re interested in, in the project explorer (step 2). A code window will appear to the right. Copy paste the code below into it:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Date_Today As String, Place_Date As String
Date_Today = Format(Now, “mm/dd/yyyy”) & ”: ”
Place_Date = ”””” & Date_Today & ”””” & ”#”
Cells(1, 1).NumberFormat = Place_Date
End Sub
ii) For all worksheets in the workbook:
Double click “ThisWorkbook” in project explorer. A code window will appear. Copy paste the following code into it:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim Date_Today As String, Place_Date As String
Date_Today = Format(Now, “mm/dd/yyyy”) & ”: ”
Place_Date = ”””” & Date_Today & ”””” & ”#”
Cells(1, 1).NumberFormat = Place_Date
End Sub
4. Now, the code has been placed. Test it. Go in your worksheet, type anything in a cell and hit enter. Today’s date will be added to what you just entered into the cell.
Actually, even if you see date in the cell, you won’t find it in the formula bar. I have just changed the format of the cell that you enter in to a custom format. In custom format (right click a cell and select format cells), you can show anything you want in addition to a value entered in. Place your text in double quotes and type # and click OK. And, see it yourself. If you drop #, only the text will be shown irrespective of what value is entered in that cell.