Row/Cell timestamp in Excel 2010

Posted on 2012-08-28
Last Modified: 2012-08-28
I have a spreadsheet that a requirement is to Date/Timestamp (C2) a cell based on when the proceeding Cell (B2) is updated to the stored item “NMC”. The formula that I am using is as follows:
However, this formula works…too well… not only does that ROW timestamps, but all the other Rows with the same record changes as well. Or if I select any of the other two items (PMC or FMC) the timestamp will change immediately for any record with “NMC”.

I am a loss to how to fix this timestamp for the one record, not the others unless they are physically changed.

see the attached file
Question by:edrz01
    LVL 33

    Expert Comment

    How is the value in B2 updated?

    Author Comment

    B2 is a pull-down with three selection "NMC", "PMC", "FMC"
    It is selected by the user. I only want the "NMC" to timestamp, if either of the other two are selected...blank the timestamp in C.

    Currently there are 94 records, if the user deems to change the status to NMC then datestamp, else NULL the timestamp.

    Changing one row/record should not change any of the times in the other rows.
    LVL 10

    Accepted Solution

    Add this subroutine to the Worksheet in the Visual Basic Editor:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.value = "NMC" Then
            Target.Cells(1, 2).value = Now()
        ElseIf Target.value = "FMC" Or Target.value = "PMC" Then
            Target.Cells(1, 2).value = ""
        End If
    End Sub

    Open in new window


    Author Closing Comment

    Thank you very much tdlewis..!!! That's why you guys are the experts!! Perfect solution...!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
    Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now