Share via

insert a date that do not update

Anonymous
2013-07-24T13:36:38+00:00

Hi community,

Is there a formula / function (No Macro or User-defined Function) that can be inserted  to give a date (do not automatically updated) into a cell.

Example:

I am using a IF function in a cell, when the cell detected a value in the next adjacent cell, the cell (with the IF function) will display a current date (not suppose to be able to auto-update).

I am using Office 2010 Excel

Appreciated if there is any assistance rendered :)

Best wishes to all at Community :)

Microsoft 365 and Office | Excel | For home | 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

Answer accepted by question author

Anonymous
2013-07-24T14:52:31+00:00

Event code is not all that hard to do. For example, if you wanted the date in the cell to the right of any single cell that changes on a sheet when it is changed, copy this code, right-click the sheet tab, select "View Code" and paste the code into the window that appears.

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count > 1 Then Exit Sub

Application.EnableEvents = False

With Target(1, 2)

'Choose any date/time format you like

.NumberFormat = "mm/dd/yyyy hh:mm AM/PM"

.Value = Now

End With

Application.EnableEvents = True

End Sub

Was this answer helpful?

0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-07-25T12:49:06+00:00

    Hi,

    appreciated your reply and thanks :)

    regards,

    thanks community as well :)

    Was this answer helpful?

    0 comments No comments
  2. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2013-07-24T23:57:00+00:00

    Hi,

    Try this

    1. Suppose you are entering the IF Function in column A, say in range A2:A50 (I am assuming that the IF() function will not return a blank).  Once data is entered, filter the column without blanks i.e. in the Filter drop down, uncheck Blanks
    2. Select the blanks cells of the adjacent column and press Alt+; to select visible cells only
    3. Press Ctrl+; to generate today's date

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-07-24T14:23:30+00:00

    Hi,

    emm . . . that is too much for me :), alright! accepted the info and appreciated your replied.  :)

    regards,

    best wishes to You and community group :)

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-07-24T14:04:48+00:00

    No - you need to use a macro (event code, actually) to do that.

    Was this answer helpful?

    0 comments No comments