+ Reply to Thread
Results 1 to 5 of 5

Insert date when contents = "Completed"

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Insert date when contents = "Completed"

    Hi,
    I have a worksheet with 2 columns column a "status" and the other column B "date" what I want is whenever the contents in column a change and the entry ="Completed" the date is input into the corresponding cell in column B, I have been using the formula; =IF(A2="Complete",TODAY(),"") however when the day changes this no longer works, Any help would be most appreciated.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert date when contents = "Completed"

    Hi

    A Sheet change macro would probably be best. i.e.
    Please Login or Register  to view this content.

    End Sub
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Insert date when contents = "Completed"

    Thanks Richard works well but for some reason it is putting the date in the next cell down in column B instead of the one directly next to it?

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Insert date when contents = "Completed"

    Try this......

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert date when contents = "Completed"

    Hi,

    That suggests that your Exel application is set to move the cursor after entry. Look in the File Options Advanced Editing. Personally I prefer not to have the cursor move whatever I do. I'd rather decide that for myself.

    You could either change your settings so that it doesn't move or change the code to

    ActiveCell.Cells(0, 2) = Date

+ 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. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  2. If "Completed" then move entire row to "Completed" worksheet
    By Reed1620 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2013, 01:59 PM
  3. Moving entire row from the "Schedule" worksheet to "Completed" worksheet
    By Redveck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 02:30 PM
  4. automatic macro to say "completed" in one cell when a date is added to another
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2012, 12:33 PM
  5. Replies: 3
    Last Post: 10-25-2005, 07:05 PM

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