+ Reply to Thread
Results 1 to 7 of 7

I need a 183 day rolling formula

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Columbus,Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    I need a 183 day rolling formula

    Our company is moving to a rolling 183 day attendance policy. Attached is the file in which I would like that formula to show the rolling number under each employees name. I can't even tell you all the formulas I've tried at this point and none of them are doing what I need them to do, and I may be trying to over simplify this too. Cell A3 is displaying the date that it's looking back through but really the new policy started on 6/1/2017, so on 12/1/17 is the first opportunity for any occurrences on 6/1 to fall off.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: I need a 183 day rolling formula

    You've given no indication of the result you want.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: I need a 183 day rolling formula

    Ok, not the most glamorous solution (someone will probably offer something better,) but I simply did a SUM for a 183 day period and locked the reference, then the each day, you can click into the SUM function to highlight the range and you're able to drag it down (by the middle) to bring down the 183 day "block" by one day (don't drag by the corner which will expand the range one or more days.)

    Also, I had to adjust you IF in Column D; since the value was technically a formula, it wasn't summing the formula results as expected:

    =IFERROR(VALUE(IF(C167="","",IF(C167="late",".5",IF(C167="AB","1",IF(C167="NCNS","1",IF(C167="LE",".5",IF(C167="LL",".5"))))))),"")

    Hope this helps or someone responds with something better!

  4. #4
    Registered User
    Join Date
    06-05-2017
    Location
    Missouri
    MS-Off Ver
    2013
    Posts
    62

    Re: I need a 183 day rolling formula

    Hello,

    You are going to want to use the =SUMPRODUCT formula to do what you are attempting to do. This has been previously set up in a different structured format, please see the attached spreadsheet.

    Your formula to use is
    =SUMPRODUCT((D$4=$H6:$NH6)*($H$5:$NH$5>=EDATE($C$1,-$D$1))*($H$5:$NH$5<=$C$1))
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: I need a 183 day rolling formula

    Try (If I understand correctly)

    in C2

    =SUMIFS(D:D,A:A,">="&TODAY()-183,A:A,"<="&TODAY())

    AND change your formulae

    =IF(C167="","",IF(C167="late",0.5,IF(C167="AB",1,IF(C167="NCNS",1,IF(C167="LE",0.5,IF(C167="LL",0.5))))))

    remove quotes from the numeric values so they are treated as numbers not TEXT
    Attached Files Attached Files

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: I need a 183 day rolling formula

    .
    Here is another version :

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Logit; 06-24-2017 at 06:19 PM.

  7. #7
    Registered User
    Join Date
    01-07-2014
    Location
    Columbus,Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: I need a 183 day rolling formula

    Thank you all. Turns out my biggest (and simplest) issue was that the points were being counted as text and not numbers. Good Grief. Thanks JohnTopley, worked like a charm.

+ 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 time formula
    By namluke in forum Excel General
    Replies: 2
    Last Post: 07-30-2014, 09:55 AM
  2. Rolling 28 day formula
    By TheBlueCrew in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-06-2014, 06:05 AM
  3. [SOLVED] Creating a rolling formula
    By tbenge05 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2014, 01:30 PM
  4. [SOLVED] Rolling average formula
    By T15K in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 04:41 AM
  5. keeping formula rolling
    By mmccleve in forum Excel General
    Replies: 8
    Last Post: 10-07-2011, 01:13 PM
  6. I believe it would be called a rolling formula????
    By Cat Foster in forum Excel General
    Replies: 2
    Last Post: 05-23-2006, 05:55 PM
  7. [SOLVED] Z Chart i.e. top rolling annual bottom rolling monthly middle ***.
    By wat prin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-28-2005, 02:06 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