+ Reply to Thread
Results 1 to 4 of 4

Certain cells fill with colour based on the dates I enter (gantt chart style)

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2011 Mac
    Posts
    2

    Certain cells fill with colour based on the dates I enter (gantt chart style)

    Hi guys -

    I'm trying to create a gantt in excel and i'm trying to figure out if there is a way that, when I enter a start and end date in their respective columns, it fills the relevant cells in the sheet to correspond.

    So, for example in the screenshot, if i were to enter in the first row start date as Jan-6 and end date as Feb-4, the cells from Jan-6 to Feb-4 would autofill with a colour.

    i've attached a screenshot of the sheet.

    Thanks!
    Screen Shot 2014-04-08 at 14.43.57.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Certain cells fill with colour based on the dates I enter (gantt chart style)

    Hi and welcome to the forum

    This can be done with Conditional Formatting and (probably) an IF(and) statement. However, please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-08-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2011 Mac
    Posts
    2

    Re: Certain cells fill with colour based on the dates I enter (gantt chart style)

    Thanks, Ford!

    I've tried playing with conditional formatting and If statements, but can't seem to achieve the desired effect.
    sorry for the screenshot - I've attached, instead, a file, and put in some sample values and results.

    Thanks.
    Matt
    2014_Roadmap(Copy).xlsx

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Certain cells fill with colour based on the dates I enter (gantt chart style)

    Conditional formatting will do this for you. Select the cells from F4:G30 then click on Conditional Formatting, New Rule.
    For Sprint 1, select the option to use a formula and enter this:
    Please Login or Register  to view this content.
    Click no Format and set the formatting you want to apply then closed the dialog box. You will need to repeat this for each of the other sprints, adjusting the cell references as needed.

    If the conditional formatting does not work when you type in some valid dates, edit the conditional formatting rule and remove and double quote marks that Excel has automatcially added to your formula.

    Good luck with it! If you strike trouble, attached a copy of your actual workbook so we can see what you have done.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

+ 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. Excel style gantt chart conditional formatting issue
    By Journeyman3000 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-13-2013, 04:06 PM
  2. Calculating cells based on fill colour
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-21-2013, 11:59 AM
  3. Automated colour fill based on dates PROBLEM
    By MFlo85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-06-2010, 09:11 AM
  4. GANTT chart based on conditional formatting - macros to merge cells
    By Florinnn in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-25-2010, 12:21 PM
  5. [SOLVED] i want cells to auto fill with colour when i enter a number
    By zoe in forum Excel General
    Replies: 1
    Last Post: 04-26-2006, 06:10 AM

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