+ Reply to Thread
Results 1 to 7 of 7

Question: How to Highlight rows based on dates

  1. #1
    Registered User
    Join Date
    09-28-2021
    Location
    Omaha, NE
    MS-Off Ver
    365
    Posts
    4

    Question: How to Highlight rows based on dates

    I would like to use the dates in a certain column of an inventory spreadsheet to determine if a product's warranty has expired. I would like to mark the row in one color if the expiration date has already passed, another color if the date is within 1 year of the current date, and leave other rows as is. Can someone please tell me how I can do that, if possible? Thank you.

  2. #2
    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,759

    Re: Question: How to Highlight rows based on dates

    Welcome to the forum.

    You'll need two CF rules.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  3. #3
    Registered User
    Join Date
    09-28-2021
    Location
    Omaha, NE
    MS-Off Ver
    365
    Posts
    4

    Re: Question: How to Highlight rows based on dates

    I've added an attachment, thank you for the reply.
    Attached Files Attached Files

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

    Re: Question: How to Highlight rows based on dates

    As AliGW states two conditional formatting rules will be needed.
    Formula for red fill (I suggest white font): =$F2< TODAY()
    Formula for yellow fill: =$F2< EDATE(TODAY(),12)
    Note that both rules have an applies to of: =$A$2:$H$5
    Note that the order of the rules is important i.e. red rule is listed first.
    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
    09-28-2021
    Location
    Omaha, NE
    MS-Off Ver
    365
    Posts
    4

    Re: Question: How to Highlight rows based on dates

    That works, thank you. Is there a way to stop the rule from marking rows without dates as red? Other than to clear rules from those rows?

  6. #6
    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,759

    Re: Question: How to Highlight rows based on dates

    This:

    =AND($F2<>"",$F2< TODAY())

    =AND($F2<>"",$F2< EDATE(TODAY(),12))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 all those who offered help.

  7. #7
    Registered User
    Join Date
    09-28-2021
    Location
    Omaha, NE
    MS-Off Ver
    365
    Posts
    4

    Re: Question: How to Highlight rows based on dates

    Perfect, thank you.

+ 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: 3
    Last Post: 01-11-2021, 01:22 PM
  2. [SOLVED] How to Highlight rows if date is found between Range dates
    By paniqui2020 in forum Excel General
    Replies: 6
    Last Post: 07-13-2020, 07:20 AM
  3. [SOLVED] How Can I: Highlight a Range of Cells Based on Dates?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-12-2016, 05:55 PM
  4. [SOLVED] Highlight rows with different dates
    By bigroo1958 in forum Excel General
    Replies: 6
    Last Post: 08-12-2016, 12:48 PM
  5. [SOLVED] Highlight Cells Based on Dates
    By pugsly8422 in forum Excel General
    Replies: 3
    Last Post: 01-27-2015, 01:09 PM
  6. [SOLVED] Macro to highlight rows based on workday dates
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2014, 03:39 PM
  7. [SOLVED] Trying to get Excel to highlight cells based on assigned dates.
    By tatumrae in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-10-2013, 08:25 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