Dynamic Today() in a formula on another cell working but I need it to not change tomorrow or later.

chill75

New Member
Joined
Dec 17, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I'm sure this has been answered as I've read similar post on this forum but none matched what I am doing exactly and I need to get this fixed quickly. I apologize if this is a repeat, but I have a simple formula on a cell that when the value of the cell is not longer empty, or an employee started to type characters in the cell, it puts today's date in the next cell on the same sheet. Kind of like auto populating a start date for the employee. The formula is working perfectly but the issue is I do not want the employee to have to do anything to the date manually and I do not want the date to change when the document opened in a few days. Currently when the document is opened again the next day the start dates all change to the next day's date. Is there a way in the formula to mark the value and static once generated or a better way to auto record a date in a field that will not change when reopened? Thank you in advance for any advice you can give.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Awesome. The third option might do just the trick. Thank you!!
 
Upvote 0
Well I had hope but as of this morning when I opened the document and the dates changed to today's date and did not stay yesterday's date so those did not work it seems.
 
Upvote 0
As an experiment I used the formula "=today()" in A1.
I then copied A1 and Paste Special/value in A1.
The result was that A1 still shows the original date.
Decided to record these actions in a macro (named todaytest) and this is the macro
VBA Code:
Sub todaytest()
'
' todaytest Macro
'

'
    ActiveCell.FormulaR1C1 = "=TODAY()"
    Range("A1").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    ActiveSheet.Paste
    Application.CutCopyMode = False
End Sub
In case it helps you
 
Upvote 0
As an experiment I used the formula "=today()" in A1.
I then copied A1 and Paste Special/value in A1.
The result was that A1 still shows the original date.
Decided to record these actions in a macro (named todaytest) and this is the macro
VBA Code:
Sub todaytest()
'
' todaytest Macro
'

'
    ActiveCell.FormulaR1C1 = "=TODAY()"
    Range("A1").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    ActiveSheet.Paste
    Application.CutCopyMode = False
End Sub
In case it helps you

Does this help...


Sub todaytest()

Range(“A1”).value = Date

End Sub
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,344
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top