+ Reply to Thread
Results 1 to 8 of 8

Highlight cell if "date" is past 30 day and change cell text

  1. #1
    Registered User
    Join Date
    11-02-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Highlight cell if "date" is past 30 day and change cell text

    My report has a formula that changes text in "L" column based on the date (column "K" being greater than 300 days. I want to highlight and change column "L" text if date in column "K" is greater than 30 days past date.

    I'm not sure if this can even be done in conditional formatting or if it will work better in VBA,

    Any help would be WONDERFUL!

    Thank you!

  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: Highlight cell if "date" is past 30 day and change cell text

    Hi,

    You can't use conditional formatting to change the value of a cell - only what the contents of the cell looks like.

    But if column L is a formula why not just extend the formula - presumably with an IF test which tests whether the column K date is 30 days past 'date', but you;ll need to explain what you mean by 'past date'.

    Upload a workbook with some examples and manually add the results you expect to see with different scenarios.
    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
    Registered User
    Join Date
    11-02-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Re: Highlight cell if "date" is past 30 day and change cell text

    Thank you for the quick response! I'm not an expert at this so can you please explain in a little more detail?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,753

    Re: Highlight cell if "date" is past 30 day and change cell text

    Hello Tweet76 and Welcome to Excel Forum.
    I believe that Richard is asking you to upload a sample of the report (spreadsheet) of which you spoke in post #1 (My report has a formula that changes text in "L" column...). It would help us to help you if you could tell us what you want to happen with the cell in column L that isn't happening now.
    To upload a sample spreadsheet click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    11-02-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Re: Highlight cell if "date" is past 30 day and change cell text Sample

    Please see attached "Sample" file.
    Attached Files Attached Files

  6. #6
    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: Highlight cell if "date" is past 30 day and change cell text Sample

    Hi,

    Would you manually add the results you expect to see and clearly indicate which cells are the results and which are original data and add a note explaining how you calculated the results

    Your original said or at least implied that column L contains a formula, however the file you sent simply contains manually entered dates so I'm somewhat confused.

  7. #7
    Registered User
    Join Date
    11-02-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Re: Highlight cell if "date" is past 30 day and change cell text Sample

    The "Review Status" (column M) is determined by the "Approval" (column "L"). The current rule is =IF(L4="XXXXX","Unapproved",IF(L4+300<NOW(),"REVIEW DUE","CURRENT")). I would like it to calculate anything over 30 days (13 month, 395 day, etc..) and change to "Over Due" and highlight. I want the status of "Review Due" to change to a color. I hope this makes sense.

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,788

    Re: Highlight cell if "date" is past 30 day and change cell text

    Please do what Richard has asked and then attach the amended version of your file. Thanks.
    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.

+ 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: 4
    Last Post: 06-11-2017, 02:03 PM
  2. Replies: 4
    Last Post: 03-11-2016, 03:34 PM
  3. "Worksheet change" not changing cell on other sheet to match target cell "fill".
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-02-2015, 12:02 PM
  4. Replies: 5
    Last Post: 07-16-2015, 10:14 AM
  5. Replies: 8
    Last Post: 01-28-2014, 05:15 PM
  6. Replies: 2
    Last Post: 06-11-2012, 06:08 PM
  7. Replies: 5
    Last Post: 01-10-2012, 11: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