+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Conditional format for coloured cells

Hybrid View

  1. #1
    Registered User
    Join Date
    04-13-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    03 and 07
    Posts
    21

    Conditional format for coloured cells

    Hi

    In need of a Conditional Format, or might be code!!

    I have applied conditional formats to colour cells when the start and end date are entered and for weekends (see attached)....but ultimantly I would also like the calander cells to colour black if column C indicates 'A' (for approved leave) or red for 'P' (for proposed leave).

    Can this be done through conditional formatting?..If not, can someone provide me with a code that I can cut and paste.

    Any help would be appreciated
    Ta
    Attached Files Attached Files
    Last edited by NBVC; 05-06-2011 at 03:53 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Conditional format for coloured cells

    Use this formula for condition 2 (Proposed)

    =AND($C4="P",D4>=$A4,D4<=$B4)

    Use this formula for condition 3 (Approved)

    =AND($C4="A",D4>=$A4,D4<=$B4)

    Click OK.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    04-13-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    03 and 07
    Posts
    21

    Re: Conditional format for coloured cells

    Im not sure what im doing wrong, the fomulas make sence but it doesnt seem to be working for me, Ive triple checked and changed absolutes..No joy.

  4. #4
    Registered User
    Join Date
    04-13-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    03 and 07
    Posts
    21

    Re: Conditional format for coloured cells

    Problem solved - I swapped =and for =If, works great thx

+ 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