HOw do i stop a Timestamp from changing when using NOW Formula when Cells are updated in excel

Anonymous
2023-09-25T20:17:40+00:00

I am inserting formula for =IF(C3<>"",NOW(),""), but i don't want it to change if excel worksheet is updated. I can't use shortcut CTRL+;, because of the users that will be utilizing this sheet. I am trying to track parts ordering so i want to measure the start to complete time frame.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-09-25T21:17:27+00:00

    Ok, here is some VBA code:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    If Intersect(Target, Range("A1:A10")) Is Nothing Then Exit Sub 
    
    Application.EnableEvents = False 
    
    Target.Offset(0, 5) = Now 
    
    Application.EnableEvents = True 
    

    End Sub

    In this case the range where the formula will be entered is F1:F10, when the cell on the equivalent row in column A is selected. This may not be exactly what you need but it gives you an idea.

    But for the macro you need we need to have more details. What cells or text do you want to trigger the macro? Where do you want the date to be entered?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-09-25T20:57:30+00:00

    Hi,

    My VBA is rusty, but someone here can write you a short macro that will do the same thing I'm suggesting, converting the formula to a value. This would be what we call a Selection Change event.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-09-25T20:47:10+00:00

    What formula then would i have them Copy & Paste, the CTRL+; Space CTRL+SHIFT+; ? I am trying to have the timestamp auto-populate when text is chosen. trying to not have alot of user manual input. More automated

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-09-25T20:37:50+00:00

    Hi,

    Now always updates with the spreadsheet. You could have them copy the formula and then paste special values. This can be done from the Clipboard group on the Home menu, from buttons on the QAT, or shortcut keys: Ctrl+C, Ctrl+Shift+V. This last shortcut key was new in 2022, alternately Ctrl+Alt+V will open the Paste Special dialog box.

    Was this answer helpful?

    0 comments No comments