+ 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
    Registered User
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    2016
    Posts
    74

    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
    2016
    Posts
    2,006

    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
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    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!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  4. #4
    Registered User
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    2016
    Posts
    74

    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