+ Reply to Thread
Results 1 to 4 of 4

conditional formatting and dates - is one date less than x week before another date

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    conditional formatting and dates - is one date less than x week before another date

    Hi,

    I have a spreadsheet with two columns in which contain dates. i want the second column to be highlighted if the date is less than 6 weeks before the date in the first column. I have tried various variations of the conditional formatting including

    =$B$2<$A$2+294

    but this doesn't seem to work.

    Please see example included - highlight cells in column B if the date is LESS than 6 weeks before the date in column A.

    Any thoughts

    Thanks
    J
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: conditional formatting and dates - is one date less than x week before another date

    This should work. =B2<A2-6*7
    Click the * to say thanks.

  3. #3
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,368

    Re: conditional formatting and dates - is one date less than x week before another date

    CF rule:

    =DATEDIF(B2,A2,"d")<6*7

    Apply to the range B2 to B22.
    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.

  4. #4
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: conditional formatting and dates - is one date less than x week before another date

    Hi thanks both of these solutions work

    J

+ 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. [SOLVED] Conditional Formatting for any date within the following week
    By PitBoo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-18-2019, 02:49 PM
  2. Conditional Formatting: One date between two other dates
    By kyohnke in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2018, 03:37 PM
  3. [SOLVED] Conditional formatting dates based on date range and day - pt2
    By dancing-shadow in forum Excel General
    Replies: 5
    Last Post: 01-13-2014, 07:12 AM
  4. [SOLVED] Conditional formatting dates based on date range and day
    By dancing-shadow in forum Excel General
    Replies: 4
    Last Post: 01-07-2014, 01:45 PM
  5. Conditional Formatting (or a formula) For Dates Comparing to the Current Date
    By shoebox54th in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 01:20 PM
  6. Conditional Formatting Cells with Dates Outside of Date Range
    By emalegria in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2013, 04:09 PM
  7. Replies: 2
    Last Post: 09-20-2011, 04:45 PM

Tags for this Thread

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