+ Reply to Thread
Results 1 to 6 of 6

Worksheet change value in one sheet, enter date stamp in another sheet when ID matches

  1. #1
    Registered User
    Join Date
    04-10-2019
    Location
    VA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Worksheet change value in one sheet, enter date stamp in another sheet when ID matches

    Just like the title says.

    I have 2 sheets, Stats and Chores. Stats contains the RefID (column A), the date the chore is due to be completed (Column B), when the Chore is completed (column C), what the chore is (column D), how frequently the chore occurs (Column E) which counts in days, and when the chore is next due (Column F). Column C is where I want the Date stamp to show.

    In the chores sheet, it has the ID # (column A), the chore (Column B) which will show based on the dates established in Column E and F, and the status of the Chore (Column C).

    So, what I'm trying to do is get it so if I enter x in status (column C) of the chores sheet, the macro will check if the ID in the chores sheet matches the refID in Stats and then enter the date stamp of that chore in (Column C) of the Stats sheet.

    So far with all the code, I've tried, when I do to get it to work, more or less. It will enter the date stamp for the range I have established for the intersect of the chores sheet in the stats sheet, or it will enter the date stamp in the cell of the stats sheet that the change was made on the chores sheet. If you test the code in the workbook I uploaded you'll see what I mean.

    I've tried a For loop to cycle through the chores and match the IDs, but that's what normally when it enters the date stamp for the range.

    My head says this should be simple, but my code has pretty much been flipping me the bird every which way I try this.

    Help me excelForum your my only hope.

    The workbook should be uploaded with this post, if not let me know, or if you have any additional questions.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Worksheet change value in one sheet, enter date stamp in another sheet when ID matches

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi, try this !


    According to your attachment a VBA event to paste to the Sheet2 (Chores) worksheet module :

    PHP Code: 
    Private Sub Worksheet_Change(ByVal Target As Range)
                
    Dim Rf As Range
        
    If Target(1).Column And Target(1).Text "x" Then
                Set Rf 
    Sheet1.UsedRange.Columns(1).Find(Target(1, -1).Value2, , xlValuesxlWhole)
                 If 
    Rf Is Nothing Then Beep Else Rf(13).Value DateSet Rf Nothing
        End 
    If
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 03-15-2021 at 11:44 AM.

  4. #4
    Registered User
    Join Date
    04-10-2019
    Location
    VA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Hi, try this !

    This worked perfectly. You're awesome. Thank you so much. I knew it couldn't be as complicated as I was making it. You're a God among coders.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Worksheet change value in one sheet, enter date stamp in another sheet when ID matches

    You are very welcome. (If you are referring to my suggestion.)

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Ok Rose, so thanks to click on the bottom left star icon « ★ Add Reputation » !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Date Stamp for value change due to formula. - Worksheet Calculate ?
    By joelj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2014, 01:03 AM
  2. [SOLVED] If Text Description matches info on w/sheet then enter corresponding $
    By marsham in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2013, 01:31 AM
  3. [SOLVED] Date stamp in Sheet 2 when cell value changes in Sheet 1
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-13-2012, 06:01 PM
  4. Stamp date Sheet upon Change of value in another sheet
    By Sharankoirala in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2012, 11:16 PM
  5. Date Stamp On Worksheet Change
    By SamuelT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2009, 11:29 AM
  6. Enter Three Worksheet Change Codes on one Sheet
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-16-2007, 03:43 PM
  7. I need a date stamp that doesn't change when you enter text
    By Eric Hersey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 01:45 PM

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.6.0 RC 1