+ Reply to Thread
Results 1 to 4 of 4

Change date in a cell if I change any cell within its row

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Change date in a cell if I change any cell within its row

    Hi, guys, please help.

    This is what I got:

    A B C
    1 Blue Cherry 01/05/2014
    2 Orange Cherry 01/05/2014
    3 Purple Cherry 01/03/2014
    4 Yellow Cherry 01/06/2014
    5 Red Apple 01/02/2014

    If I change any value in column A or B, I want that its respective date in column C changes to today's date.

    E.g., I will change B1's value. If I do it today, C1 must change to today's date (01/30/2014).

    A B C
    1 Blue Banana 01/30/2014
    2 Orange Cherry 01/05/2014
    3 Purple Cherry 01/03/2014
    4 Yellow Cherry 01/06/2014
    5 Red Apple 01/02/2014

    It must keep this way until any change is made again in A1 or B1.

    Column C is something like 'Last update'.

    Any idea on how do I do this?
    Thank you so much.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Change date in a cell if I change any cell within its row

    Hi, LewisM,

    I´d prefer VBA for this, right click on the worksheet tab, choose Voiew Code and paste in the code:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change date in a cell if I change any cell within its row

    Right click your worksheet tab, and click 'View Code'

    In the worksheet module that appears, paste the following code:
    Please Login or Register  to view this content.
    Done
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    11-26-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Thumbs up Re: Change date in a cell if I change any cell within its row

    Thank you so much guys, works great!!!

+ 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. Replies: 5
    Last Post: 12-07-2013, 02:21 PM
  2. Replies: 2
    Last Post: 06-18-2013, 01:21 PM
  3. IF Function to change Date, on change of cell.
    By chrisa112 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 11:27 AM
  4. Replies: 4
    Last Post: 01-06-2010, 04:24 PM
  5. [SOLVED] change background row color with change of date in a cell
    By Urszula in forum Excel General
    Replies: 5
    Last Post: 05-17-2006, 03:00 AM

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