+ Reply to Thread
Results 1 to 5 of 5

Thread: Insert DATE if any Cell in Row changed

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Buckingham Palace
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Insert DATE if any Cell in Row changed

    I have a spreadsheet of Sales Funnel data where columns A through J are typical sales fielded information.

    I'd like to use column L to insert a DATE if any of the cells on that row in columns A-J are changed/update by sales personnel.

    I'd appreciate tips from learned excel programmers.
    Last edited by varocketry; 03-18-2011 at 10:41 AM. Reason: Solution provided by GURU Jerry

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,208

    Re: Insert DATE if any Cell in Row changed

    You're correct that this will require VBA. Which means this probably should have been posted in the Programming forum. Oops.

    Right-click the sheet tab and select VIEW CODE, then paste in this macro:

    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell As Range
    
    For Each cell In Target
        If Not Intersect(cell, Range("A:J")) Is Nothing Then
            If cell <> "" Then
                Application.EnableEvents = False
                Range("L" & cell.Row) = Date
                Application.EnableEvents = True
            End If
        End If
    Next cell
    
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-18-2011
    Location
    Buckingham Palace
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: Insert DATE if any Cell in Row changed

    WOW, GURU is right.
    Thanks Jerry

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,208

    Re: Insert DATE if any Cell in Row changed

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    06-16-2011
    Location
    bangalore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Insert DATE if any Cell in Row changed

    hi
    i want a macro to insert a current date on a blank column whenever a data in a cell is changed/modified. I tried pasting your macro in excel, but it didn't work. Please help me.

    for example, i have a data in column AW as current Status (Awaiting Data) and in column AX as previous status (empty) when i change this AW column to Operational/standby/write-off/rented from Awaiting Data, i want a current date to be inserted on the next column, and also, previous status (AX column) should be changed to Awaiting Data when i change the AW column to operational/standby....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0