+ Reply to Thread
Results 1 to 5 of 5

how to display deferent value of Now() if cell contains text

  1. #1
    Forum Contributor
    Join Date
    07-20-2007
    MS-Off Ver
    2016, 365
    Posts
    127

    how to display deferent value of Now() if cell contains text

    Hi All

    In the attached spreadsheet, I would like to get the value of the Now() function in each cell of the row in column C depending on when the cell in column B gets the text value "Complete". In that case each cell in column C will have different values. How it to do?
    CurrentDate.xlsx
    Last edited by eugz; 07-12-2023 at 07:59 PM.

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: how to display deferent value of Now() if cell contains text

    pls try this code

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-20-2007
    MS-Off Ver
    2016, 365
    Posts
    127

    Re: how to display deferent value of Now() if cell contains text

    Hi wk9128. Thanks for reply.
    You code works fine. But I have a procedure that makes a copy of the worksheet. In this case, when I run it, your code doesn't work on the copied worksheet. Can the code be modified to allow functions to be executed on the copied worksheet?

    Thanks

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: how to display deferent value of Now() if cell contains text

    Quote Originally Posted by eugz View Post
    Hi wk9128. Thanks for reply.
    You code works fine. But I have a procedure that makes a copy of the worksheet. In this case, when I run it, your code doesn't work on the copied worksheet. Can the code be modified to allow functions to be executed on the copied worksheet?

    Thanks
    PLS TRY THIS CODE

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: how to display deferent value of Now() if cell contains text

    1. Go to: Options/Formulas and check Enable Iterative Calculations.


    2. In C1, copied down:
    =IF(B1="","",IF(C1="",NOW(),C1))

    When "Complete" is selected in column B a non-updating date stamp is added in column C.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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: 2
    Last Post: 04-26-2023, 03:52 PM
  2. Replies: 3
    Last Post: 10-01-2019, 01:21 AM
  3. [SOLVED] From Cell A2, remove text that is found in Cell B2, and display any remaining text in C2
    By lespaulfan#1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2019, 12:42 PM
  4. Replies: 9
    Last Post: 11-08-2015, 08:04 PM
  5. Replies: 11
    Last Post: 11-03-2013, 09:16 PM
  6. Replies: 7
    Last Post: 09-03-2013, 04:43 PM
  7. VBA - Import text from cell value and display in text box on cell mouse click
    By hemal89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2013, 07:20 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