+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting - Based on date ranges

  1. #1
    Registered User
    Join Date
    03-21-2017
    Location
    Toowoomba, Australia
    MS-Off Ver
    365
    Posts
    10

    Conditional Formatting - Based on date ranges

    Hi again,

    Since getting the help yesterday to complete my biggest challenge to date with my excel, I figured I'd be able to understand conditional formatting. I've done some simple conditional formatting in the past but what I'm hoping to achieve here hurts my brain to think about.

    Attached is my file from yesterday with the formulae you guys helped me with, now what I'm looking to do is set up a colour scheme to match our projected start and end dates. I've seen a few examples on this forum but they went through a single reference point and I'm hoping to use the start and end dates to colour sections of a 6 month schedule based on dates entered in only one row then projected down.

    Reading that back is slightly confusing to me, so any help is appreciated and happy to clarify anything I can. I've written on the spreadsheet in boxes to try to clarify.
    Attached Files Attached Files

  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: Conditional Formatting - Based on date ranges

    Here's a coupld of different ways:

    First, select the cells from F5 to EZ7, then click on Conditional Formatting | New Rule | Use a formula... , then put this formula in the dialogue box:

    =AND(F$3>=$D5,F$3<=$E5)

    Click on the Format button | Fill tab and choose your colour, then click OK twice to exit the dialogue box - Excel will automatically adjust the ranges in that formula to suite the selected cells.

    Another way is to fill the cells with a character and then the CF is condition is set if a cell contains that character. For example, put this formula into cell F3:

    =IF(AND(F$3>=$D5,F$3<=$E5),"x","")

    Then copy across and down to suit your display - this will show x on each day between the date range(s). Then your CF condition is simply Cell Contains "x" - ensure that both the foreground and background colour is set to the same, so that the x is not visible.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-21-2017
    Location
    Toowoomba, Australia
    MS-Off Ver
    365
    Posts
    10

    Re: Conditional Formatting - Based on date ranges

    That's perfect, thanks a lot Pete

  4. #4
    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: Conditional Formatting - Based on date ranges

    You're welcome - glad to be able to help.

    Thanks for the rep.

    Pete

+ 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: 2
    Last Post: 11-27-2014, 10:31 AM
  2. Replies: 5
    Last Post: 08-06-2013, 02:13 PM
  3. Conditional Formatting Date Ranges
    By groleaujj in forum Excel General
    Replies: 5
    Last Post: 04-07-2011, 06:44 PM
  4. Conditional Formatting Date Ranges
    By Justinmih in forum Excel General
    Replies: 2
    Last Post: 11-05-2010, 08:34 PM
  5. multiple date ranges & conditional formatting
    By gechu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2010, 09:26 AM
  6. conditional formatting based on 5 named ranges
    By dcgrove in forum Excel General
    Replies: 8
    Last Post: 01-06-2010, 06:10 PM
  7. [SOLVED] Conditional Formatting - date ranges
    By Angela in forum Excel General
    Replies: 6
    Last Post: 11-02-2005, 06:20 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