+ Reply to Thread
Results 1 to 3 of 3

Counting "YES" values only within a moving 366 day window

  1. #1
    Registered User
    Join Date
    10-01-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    2

    Post Counting "YES" values only within a moving 366 day window

    Hi there,

    To explain my problem, I am putting together something as a side project for our company to help track occasions of bad attendance.

    Currently I have something set up that simply calculates the amount of "YES" values entered for that line for each employee, that I have set to conditionally format if it reaches a certain value or higher.

    Issue is due to the company rules, any occasions that happened one year and a day ago do not count in these totals, so I have to set my sheet to look up only the "YES" values within a moving 366 day window.

    I have two seperate sheets, one for lates, and one for no shows - both populate their totals on the "master" sheet currently and are virtually identical, using Drop Downs for people to choose YES/NO entries for simplicity.

    One is called "Lates" and the other is called "No Shows", how can I create a formula that only looks for "YES" specifically within a 365 day moving calendar period?

    My dates range from I3 to APM3 - covering a 3 year period currently which is all the project requires for now (1st Octover 2014 till 1st October 2017) and the results populate right below these directly and these "YES" results are then tabulated using a simple =COUNTIFS(Lates!I4:APM4,B3) for example where B3 is my "YES" result in the drop down list I have, with an idential =COUNTIFS('No Show'!I4:APM4,B3) for the other sheet.

    Currently these results are then referenced in the master sheets "# Of Occasions" for each, with any result of 5 or higher causing the conditional formatting to highlight the cell and make it yellow to get someones attention.

    Question is, how do I have it only count results in a moving 366 day window and input that into this.

    Thanks in advance for any advice/help.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Counting "YES" values only within a moving 366 day window

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    10-01-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    2

    Post Re: Counting "YES" values only within a moving 366 day window

    SAMPLE.xlsx

    Here is a densensitised copy of the basic workbook I am working on, all private/confidential information removed.

+ 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. [SOLVED] Rolling/Moving Average: Last "n" values not including blanks in a row
    By Gooner2408 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-24-2013, 12:08 PM
  2. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  3. VBA - IE - click on "Open" in an internet explorer "file download" window
    By victoire in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2013, 07:08 AM
  4. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  5. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  6. counting "true" values but using filtered data
    By andyr85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2010, 08:55 AM
  7. Excel 2003 VBA - "Maximizing" Window & "Calculating" Workbook
    By JingleRock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2006, 12:10 AM
  8. Replies: 5
    Last Post: 03-22-2006, 01:30 PM

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.6.0 RC 1