+ Reply to Thread
Results 1 to 5 of 5

Colouring cells according to date ranges

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Scotland
    MS-Off Ver
    excel 2007
    Posts
    12

    Colouring cells according to date ranges

    Hi

    I have attached example.
    In tab called 'actions list' there is a column called 'by when' which copies through into the 'gantt chart' tab
    What I want to do is (in gantt chart tab) - when the 'by when' date is say, March - the columns Jan - March become coloured green; if the by when date is Oct, the columns Jan - Oct colored green.
    Is this possible?
    Thanks folks.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Colouring cells according to date ranges

    Use conditional formatting based on formula.
    for instance select E4:Pxxx and home->conditional formatting->new rule->use formula...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and green fill

    of course it can be developed further not to color if column C is not established
    for instance with such formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and so on and so forth (for instance in row 3 you have 1st days of month - to compare with end use EOMONTH ...
    Last edited by Kaper; 01-28-2016 at 06:40 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Scotland
    MS-Off Ver
    excel 2007
    Posts
    12

    Re: Colouring cells according to date ranges

    Thanks Kaper - that works brilliantly!

    If it were to get more complicated...... is there a way to take into account the 'date open' (column D on first tab) so that if the colours on the gant chart only start in the month the date open lists (currently it is colouring everything from January - useful this month but obv as the year progresses, less so!

    I've attached what I have done so far.
    Attached Files Attached Files

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Colouring cells according to date ranges

    So you shall add another part to your AND, for instance checking if a value in row 3 is bigger than
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    (could be without this indeks/match if rows in this sheet follow arrangement of ActionList) - see corrected sheet.
    To show given month if project starts during this particular month (like Jan 05, 2016), one shall use date function combined with Year and Month - see Gant chart (2) - here I assumed that arrangement of rows is identical, and not used index/match pair.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-16-2013
    Location
    Scotland
    MS-Off Ver
    excel 2007
    Posts
    12

    Re: Colouring cells according to date ranges

    That's perfect - thank you for your help

+ 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. Conditional Format Colouring based on differences between two date cells
    By shaunguyver in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2015, 11:35 AM
  2. [SOLVED] Conditional Format Colouring based on differences between two date cells
    By shaunguyver in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2015, 11:07 AM
  3. Conditional Formatting - Colouring % of mulitple cells based on date range
    By yeahyeah93 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2014, 09:22 AM
  4. [SOLVED] Tab Colouring on Named Ranges across Spreadsheet
    By Chinpunk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2013, 02:51 PM
  5. Colouring cells to row prior to date addition
    By david rose in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-09-2012, 09:00 AM
  6. Replies: 3
    Last Post: 02-13-2012, 03:20 PM
  7. Colouring cell if it has a specific date
    By shivams22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2010, 01:13 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