+ Reply to Thread
Results 1 to 9 of 9

Calendar Date Conditional Formatting Counts

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Calendar Date Conditional Formatting Counts

    Hello,

    I have been managing contracts and their end dates, I have done this by conditional formatting. For example, if a contract is due to end within 6 months it will highlight red, if due to end within 12 months amber and within 24 months green.

    I will be continuously updating this sheet with new contracts and would love to be able to automatically count the number of contracts that are highlighted red (due within 6 months), amber (12 months) and 24 (months) so I can quickly summarize that there are x amount of contracts due to end within 6 months. I know how to use the count functions but coupling this with the conditional formatting has thrown me.

    Any help would be greatly appreciated,
    Alex

  2. #2
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Calendar Date Conditional Formatting Counts

    You could just add extra column that outputs the word 'red' 'amber' or 'green' based on the same calculation your conditional formatting uses, and then use a formula to count the number of occurrences of each word.

    Let me know if you want to implement it this way and need help with the formulas.

  3. #3
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Calendar Date Conditional Formatting Counts

    That would work - please can you help with the set up of this output and formulas of this? Thanks!

  4. #4
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Calendar Date Conditional Formatting Counts

    Sure, are you ok to provide a sample of your data so I can make sure it's suitable?

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Calendar Date Conditional Formatting Counts

    Please find attached a very basic example.

    The conditional formatting formula I used is:
    For 6 month period.. =AND($D2-TODAY()>=0,$D2-TODAY()<=182.5)
    For 12 month period.. =AND($D2-TODAY()>=182.5,$D2-TODAY()<=365)
    etc.. etc..
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Calendar Date Conditional Formatting Counts

    Attached.

    I've broken it out into columns so you can see the working, though you could consolidate that formula into a single cell if needed.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Calendar Date Conditional Formatting Counts

    That's great Bglamb, many thanks for your help!!

  8. #8
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Calendar Date Conditional Formatting Counts

    Hi,

    I went to input this formula in today but I am using lots of colors and sub-colors. How do I input into the formula Red, Accent 2, Lighter 40%?

    Thanks!!

  9. #9
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    Office 2016
    Posts
    24

    Re: Calendar Date Conditional Formatting Counts

    Hi Alex,

    I used two formulas, both of which you can tweak quite easily.

    The first one is just several nested IF statements:
    Please Login or Register  to view this content.
    You can change these numbers/words to change what word you would like to appear at which threshold. Reading from left to right, it reads "If D2 is less than 183, output "RED", else..." and then I've nested the next IF statement. You can add more layers or edit the existing ones by copying the existing format.

    eg:
    Please Login or Register  to view this content.
    The same with the second formula, though on that one you will simply need to change the string that is being searched for from eg "RED" to whatever the new string is, eg: "DARKRED"

+ 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. 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
  2. Conditional Formatting - Calendar
    By braydon16 in forum Excel General
    Replies: 2
    Last Post: 12-07-2011, 04:32 PM
  3. Conditional Formatting - Calendar
    By efernandes67 in forum Excel General
    Replies: 4
    Last Post: 12-10-2010, 11:06 AM
  4. conditional formatting in calendar
    By albert28 in forum Excel General
    Replies: 2
    Last Post: 07-05-2010, 03:36 AM
  5. Conditional Formatting to get top counts in ranges
    By Dynamo418 in forum Excel General
    Replies: 21
    Last Post: 06-30-2010, 04:58 PM
  6. Conditional Formatting for Calendar
    By Peke in forum Excel General
    Replies: 2
    Last Post: 02-14-2010, 01:17 PM
  7. Help with conditional formatting:get this calendar
    By ellisbobby in forum Excel General
    Replies: 8
    Last Post: 08-06-2009, 01:50 AM

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