+ Reply to Thread
Results 1 to 2 of 2

Calculate the percentage of dates within specific time periods?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2019
    Location
    Deeside
    MS-Off Ver
    Windows 10
    Posts
    6

    Calculate the percentage of dates within specific time periods?

    Hi All,

    Basically what I have is a spreadsheet which contains training modules down the left hand side, and employee names across the top. Once an employee has been trained in a particular module, the corresponding field has a date entered into it which states when the next training date is.

    I have conditionally formatted this to warn the user when the refresher training is going to be required.

    So
    Cell values greater than TODAY()+120 then it's green, the training date is far
    Cell values between TODAY()+30 and TODAY()+120 is yellow, meaning it's drawing closer
    Cell values between TODAY() and TODAY()+30 is pink, meaning it's very close
    Cell values less than TODAY() are red indicating training is overdue

    This has been formatted to several sheets for different departments

    Now what I want to achieve is a new sheet where I can extract the following information and this is the part I need help with:
    - I need the percentage of dates within each of the above criteria for monitoring purposes: i.e. what percentage of training is green, yellow, pink and red
    How do I do this and what formula would I need to use?


    Thanks in advance
    Last edited by DBFG; 03-29-2019 at 11:25 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Calculate the percentage of dates within specific time periods?

    Formulas cannot detect the colour of cells, only VBA can do that.

    However you are using Conditional Formatting so just use the same conditions that you used in CF to detect the colour of a cell within a COUNTIF() to count how many of a particular colour there are.
    Then you can create a total of colours and calculate a percentage.

    Posting a file would help enormously if you need further help.

    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Last edited by Special-K; 03-29-2019 at 08:53 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. Calculate MIN AVERAGE MAX number of days between two periods/dates
    By Aoleone# in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2019, 06:48 PM
  2. [SOLVED] Formula to Calculate the Percentage of Hours Shared By Two Time Periods
    By SGarza22 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-31-2018, 09:42 AM
  3. [SOLVED] Using the Count functin to calculate dates between a specific time period
    By micjoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2017, 05:02 PM
  4. Calculate time by time periods splitting productivity
    By cgfourman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2014, 03:04 PM
  5. Calculate time periods before and after 7pm
    By Sukeany in forum Excel General
    Replies: 2
    Last Post: 10-22-2011, 07:24 PM
  6. Calculate time between three periods
    By adhide in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 11:00 PM
  7. calculate time periods
    By umba-sr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2006, 10:13 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