+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting based on 2 cells

  1. #1
    Registered User
    Join Date
    05-07-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Conditional formatting based on 2 cells

    I have a gantt chart template for Excel that shades cells in the calendar area, based on task start and finish dates.
    What I would like to do is have the colour it shades based on a value from another cell - which will signify what the task type is ie meeting, email, deadline.

    This is the current formula for shading the cells based on start and finish dates

    =AND(((N$4+1)>=$G10),((N$4+1)<=$H10))

    G10 is the start date, H10 is the finish date and N$4 the overall calendar start date.
    My task type value is in C10
    Last edited by benjiec; 12-08-2015 at 08:09 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    29,916

    Re: Conditional formatting based on 2 cells

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That can't be right. There's too many brackets ...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And you'd have something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Last edited by TMS; 12-08-2015 at 08:25 PM.
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-07-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional formatting based on 2 cells

    Thanks Trevor, I actually just came back to say I've had my 3rd coffee, and got to exactly the same as what you've just posted.

    THANKS

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    29,916

    Re: Conditional formatting based on 2 cells

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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