+ Reply to Thread
Results 1 to 5 of 5

Availability calendar using conditional formatting

  1. #1
    Forum Contributor
    Join Date
    06-18-2008
    Posts
    123

    Availability calendar using conditional formatting

    Hi all.

    I'm hoping someone can help me out with a formatting issue I’m having please?

    I’m trying to create an availability calendar, similar to what you would see if you were booking a restaurant online I guess. It’s so my team can see how many hours are available to take as time off, as they are not permitted to see the main holiday sheet.

    I have no problem linking the hours available from one sheet to the other, but I’m struggling with formatting the cells. I’ve tried several ways including conditional formatting, but I can’t seem to get it right.

    I’ve attached the sheet so you can see what I’m trying to achieve. Any help would be appreciated

    Thanks a lot,

    Tony
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Availability calendar using conditional formatting

    The rules that you have set up for March (based on 8, 16 and 24 hours) don't seem to tie in with your Key. Which is the correct interpretation?

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-18-2008
    Posts
    123

    Re: Availability calendar using conditional formatting

    Hi Pete, thanks for replying.

    Probably just an error on my part, it’s been bugging me so much I wasn't concentrating

    Basically, anything 24 hours or above is red (no time off available), anything between 16 and 24 hours is amber (meaning 8 hours available to take), and anything under 16 is green (meaning more than 8 hours available).

    Thanks,

    Tony

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Availability calendar using conditional formatting

    First of all, you should select the cells to which you have already applied CF to in March, then click on Conditional Formatting | Clear Rules | Clear rules from selected cells.

    Then select cell W8 and click on Conditional Formatting | New rule | Use a formula... , then put this formula in the dialogue box:

    =W8>=24

    Click on the Format button | Fill tab and choose Red, then OK your way out.

    Repeat, but use this formula:

    =AND(W8>=16,W8<24)

    and choose amber as the fill colour. Repeat once more, using this formula:

    =AND(W8<16,W8<>"")

    and choose green for the colour.

    After exiting the CF dialogue, you can select cell W8 and double-click the Format Painter icon - this enables you to apply those conditions to other cells until you press the < Esc > key, and as all the references to W8 are relative, they will automatically change for other cells. So, you can click on the cells X8 (and also on T8, U8, V8 in turn). Press the < Esc > key, then select the cells T8:X8, then double-click on the Format Painter icon again, the click on T10, T12, T14 and T16 to apply those CF conditions to the whole month, and press < Esc > again.

    You can then repeat this for all the other months.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-18-2008
    Posts
    123

    Re: Availability calendar using conditional formatting

    Pete that's amazing! Thanks a lot, I really appreciate it

    I had no idea what that format painter icon did!

    Thanks,

    Tony

+ 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. Replies: 2
    Last Post: 10-03-2016, 08:35 AM
  2. How to do Conditional Formatting in a Calendar
    By BADebbie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-03-2016, 02:28 PM
  3. [SOLVED] Calendar and Conditional Formatting
    By TonksFan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2014, 08:12 AM
  4. Conditional Formatting - Calendar
    By efernandes67 in forum Excel General
    Replies: 4
    Last Post: 12-10-2010, 11:06 AM
  5. conditional formatting in calendar
    By albert28 in forum Excel General
    Replies: 2
    Last Post: 07-05-2010, 03:36 AM
  6. Conditional Formatting for Calendar
    By Peke in forum Excel General
    Replies: 2
    Last Post: 02-14-2010, 01:17 PM
  7. [SOLVED] Calendar - conditional formatting?
    By Valery2105 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-27-2006, 01:45 PM

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