Formula for Creating Static Datestamp/Timestamp in a Cell Relative to a Value is Added in Another Cell.

Zedrick13

Board Regular
Joined
Sep 8, 2018
Messages
100
Hello, everyone. I know you can help me on this. What I am trying to do is create a formula in one cell so that when I put the value "Yes" in another cell within the same row it creates a static date (a datestamp, essentially). Now, I want to make sure that the date doesn't change when I update the spreadsheet or I accidentally change the value "Yes" to something else.

I know I can probably just do any of the following below, but I really need it to be a formula:

1. Ctrl + ;
2. Create a macro with code:
Code:
Sub myNow()
activecell.Value = now()
End Sub
3. Enter =NOW() in a cell. After that, to easily change that formula value into a static value:
• Select the cell.
• Press and release the F2 key.
• Press and release the F9 key.
• Hit the Enter key.

So, I would really appreciate it if somebody can help me with the formula.
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Oh, I already figured it out. I did it using circular reference.

Steps:
1. Enable iterative calculations: File>Options>Formulas>Tick "Enable iterative calculations">Set "Maximum iterations" to 1.
2. Enter formula like below and hit Enter:
Code:
=IF(C3="Yes",IF(D3="",NOW(),D3),"")
Note:
1. C3 references the sheet where you enter the value that triggers the date stamp in the adjacent cell (in my case it's the text "Yes") and D3 is the cell where you enter the formula and where the date stamp value appears.
2. D3 should be formatted to date.

Cheers!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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