+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting by date-need to colour a cell

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Conditional formatting by date-need to colour a cell

    Hey all,

    Today I am trying to do some conditional formatting and mostly failing. I need to colour a cell one of 3 colours depending on the date in another cell, but I'm not sure how to do that.

    As an example, say cell A1 contained a date after 31/08/09 then cell A2 should be coloured red, and if it is before or on that date then cell A2 should be coloured green. I'm not sure how to write the formula for those in the contitional formatting though, so if someone could give me an example of one of them I'd very much appriciate it.

    Thanks.
    Ducks are better crispy...

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    re: Conditional formatting by date-need to colour a cell

    Create 2 rules

    =(A1>"31/08/2009")
    and format Red

    =(A1<="31/08/2009")
    and format Green

    Update: If you format it Green as default you may get away with just setting up one rule
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    re: Conditional formatting by date-need to colour a cell

    Hey, thanks for the reply. Unfortunatly that is not working. Now, regardless of what is entered in to cell A1, cell A2 is being coloured green.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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