+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : fill formating cells based on 2 dates (beginning and ending dates)

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    fill formating cells based on 2 dates (beginning and ending dates)

    based on the attached image... i need help on making the following work,

    DATA:
    - i have 30 rows numbered 1 to 30
    - i have 2 given dates within a month (30 days), a BEGINNING date and an ENDING DATE date (ex. Beginning = June 4, 2010 and Ending = June 18, 2010)

    I WOULD LIKE TO:
    - shade row 4 (color blue) if the beginning date is June 4, 2010 and continue shading rows 5 to 17 with color blue until such time it reaches the ending date of June 18, 2010 which i would like to be colored red.

    please do forgive me if this is too much of a task, i'm still trying to learn excel and don't have any knowledge in VB. any help is very much appreciated
    Attached Images Attached Images

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: fill formating cells based on 2 dates (beginning and ending dates)

    Assuming your table starts at A1 with header "Date Received"...

    Select the range of cells, starting at C3 (assuming your upper left most cell to colour is in C3)

    Go to Home|Conditional Formatting

    Select Manage Rules

    Click New Rule

    Select use a formula to determine which cells to format

    enter:

    =AND($A3<=C$1,$B3<C$1)

    Click Format and choose Blue from the Fill tab.

    Then click Ok.

    Click New Rule and apply same conditions with formula:

    =C$1=$B3

    Format as Red from Fill tab
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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