+ Reply to Thread
Results 1 to 10 of 10

Add todays date only when a value in different cell

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    29

    Add todays date only when a value in different cell

    I would like to have today's date only show in a cell if there is a value in a different cell. So if I want today's date to show in F2 only if there is a value in E2 how can I do that.

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Add todays date only when a value in different cell

    Try this in cell F2:

    =IF(E2="","",TODAY())

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    29

    Re: Add todays date only when a value in different cell

    tried but not working. I think because there is a formula in E2.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,347

    Re: Add todays date only when a value in different cell

    If the formula returns blank, then it will be OK. Does the formula lok like this:

    =IF(logical_test=value, result," ")

    ???

    If so, change it to this:

    =IF(logical_test=value, result,"")

    In other words, what is the formula in E2?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    29

    Re: Add todays date only when a value in different cell

    This is the sheet.
    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Add todays date only when a value in different cell

    Your sheet is protected with a password!

  7. #7
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    29

    Re: Add todays date only when a value in different cell

    Sorry I forgot all about that.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,347

    Re: Add todays date only when a value in different cell

    You have set custom formatting to hide 0 results, so try this:

    =IF(E2=0,"",TODAY())

  9. #9
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    29

    Re: Add todays date only when a value in different cell

    Perfect.
    Thank you so much!!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,347

    Re: Add todays date only when a value in different cell

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Autohide Columns that are < todays date and > todays date by 2 & 7 days
    By Dropfiddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2015, 03:51 AM
  2. Replies: 10
    Last Post: 12-10-2014, 08:44 PM
  3. Replies: 6
    Last Post: 02-08-2013, 08:29 AM
  4. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  5. Filling cells with 3 different colors based on date in cell and todays date
    By chinookcrew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2009, 07:36 AM
  6. Replies: 3
    Last Post: 05-28-2008, 01:32 PM
  7. Print todays Report using todays date
    By jerryjaysr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2007, 04:09 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