+ Reply to Thread
Results 1 to 11 of 11

90 day rolling formula to count occurances.

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    Dallas
    MS-Off Ver
    professional 2010
    Posts
    5

    90 day rolling formula to count occurances.

    I need a formula that will count occurances within a 90 day rolling period. This is to set up violations in attendance for my employees. They are allowed to have no more than 8 points within 90 days. 1 point for every absence and .5 for every tardy. The 90 days is from the date of the occurance. For example if they were absent on Oct 1st and 5th then from the 1st until the 5th they would have 1 point. On the 5th a second point would be added for the second absence for a total of 2. On the 91st day from Oct 1st the first point would fall off but the second point would remain. Then on the 91st day from the 5th the second point would fall off. So the 90 days rolls from the date of the occurance. Also I have it set up where each sheet is a month and I have two sheets for each month, 1 for my permanent employees and 1 for my temps. I really appreciate any help I can get with this. Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 90 day rolling formula to count occurances.

    sounds like you need to use the sumifS() function. but without seeing a sample of you're data, i cant say what the syntax would be. try using the sumifS() function and use the formula editor to help you. you will need to include a piece that says >=today()-90
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    Dallas
    MS-Off Ver
    professional 2010
    Posts
    5

    Re: 90 day rolling formula to count occurances.

    To FDibbins
    attendance.jpg this is what the month of oct looks like if that helps.

  4. #4
    Registered User
    Join Date
    10-31-2012
    Location
    Dallas
    MS-Off Ver
    professional 2010
    Posts
    5

    Re: 90 day rolling formula to count occurances.

    attendance.jpg I meant to reply to you and accidently just posted again. Here's a pic of the month of Oct. Hope this helps. Thank you!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 90 day rolling formula to count occurances.

    please upload a sample WORKBOOK, not a pic, i might just send you a pic back with the solution

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 90 day rolling formula to count occurances.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  7. #7
    Registered User
    Join Date
    10-31-2012
    Location
    Dallas
    MS-Off Ver
    professional 2010
    Posts
    5

    Re: 90 day rolling formula to count occurances.

    hope this works.
    Attached Files Attached Files
    Last edited by alaz88; 10-31-2012 at 01:42 AM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 90 day rolling formula to count occurances.

    thanks for the file. looks like that is for just 1 month? would the other months be on separate sheets? in order to know where to start, the formula will (i assume) have to go back 90 days from today to determine where to start counting from...correct?

  9. #9
    Registered User
    Join Date
    10-31-2012
    Location
    Dallas
    MS-Off Ver
    professional 2010
    Posts
    5

    Re: 90 day rolling formula to count occurances.

    We actually just started this on Oct 1 so I don't have any previous information. I figured I could just copy the sheet a few times to play around with it until I figured it out. Yes you are correct in that next month will be on another sheet and Dec will also. I kind of figured if I had the right formula I could just carry it from sheet to sheet. This may seem silly but I really am not well versed in excel so if possible you may have to dumb down your responses. For example >=today()-90, if I were to use this formula is there supposed to be anything in the ()? I was looking at other threads and became completely lost. Again I really appreciate your help.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 90 day rolling formula to count occurances.

    sorry, thought I responded to this, been having problems with my ISP.

    no, there is nothing required in today() - it returns today's date, give it a try and see

  11. #11
    Registered User
    Join Date
    02-14-2023
    Location
    Illinois, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2202 Build 16.0.14931.20858) 64-bit
    Posts
    23

    Re: 90 day rolling formula to count occurances.

    I had to do this for my work place. I think you'll want to stop doing what you're doing, and make it simpler. Having a separate sheet per month makes things more complicated. This is how i solved it
    Attached Files Attached Files

+ Reply to Thread

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