+ Reply to Thread
Results 1 to 3 of 3

Fill Cell Color based on start & end date.

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Fill Cell Color based on start & end date.

    Hello Again,

    I need help on very critical issue. The summary is when a date is entered in column F the week number should automatically start filling color (Yellow). It should fill color (Yellow) until a date is entered in column G. More details below.

    When a user enter start date in column F then cell color (Yellow) will be filled automatically in columns I, J, K, etc.. and continue till the user entered end date. Once the user enter end date then fill color should be stop fill the color.

    For example: Start date is 08-09-2013 and end date will be 23-09-2013 the fill colors will be from column J till Column K (Yellow) column L will be green color as that week has end date.

    If the date goes beyond 30-11-2013 then the color will be red.

    Sample file is attached
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Fill Cell Color based on start & end date.

    Can do this with an event driven macro

    Please Login or Register  to view this content.
    Paste the above code into the Sheet4(Main Sheet) tab in the VBA editor (Alt F11). Remember to save the workbook as macro enabled .xlsm
    Martin

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Fill Cell Color based on start & end date.

    Sorry for delay in response. Just a perfect solution. Topic is closed.

+ 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. change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. Fill Range based on Start/End Date
    By Regenbui in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 08:02 AM
  3. How do i auto fill cell color based on other cells' color?
    By Kchatza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2012, 05:00 AM
  4. Auto-fill adjacent cells based on start/stop date?
    By jeffreyray in forum Excel General
    Replies: 3
    Last Post: 10-03-2011, 06:49 PM
  5. Using VBA to fill col with dates based on start and end date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2011, 11:58 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