+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    Derbyshire
    Posts
    2

    Conditional formatting

    I am creating a register and have got a worksheet with everyone name and dates across the top, the dates are automatically created by entering one date, the dates are weekly. But i want to show when we are on holiday, could i do this by using conditional formatting and if yes, how and if no how else can i do this.

    Leeroy1401
    Last edited by NBVC; 11-05-2008 at 11:07 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,129
    You would have to create a list of holiday dates somewhere in the spreadsheet and then name that list something like "Holidays" (without quotes).

    Then your conditional format formula would be something like:

    =Match(A1,Holidays,0)

    where A1 is cell to format.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826
    Hi and welcome to the forum.

    You'll need to first create a list of your holidays, and then name the range "holidays"

    Now use the 'Formula Is' option within the conditional formats. Assuming you have a date in B6, add the following CF to B6 and set the format as necessary.

    Code:
    =NOT(ISERROR(MATCH(B6,holidays,FALSE)))
    Then just copy B6 and Paste Special Formats to all your other dates.

    HTH

  4. #4
    Registered User
    Join Date
    11-04-2008
    Location
    Derbyshire
    Posts
    2

    Sorted

    Cheers guys i've sorted it.
    Leeroy1401

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0