+ Reply to Thread
Results 1 to 6 of 6

Thread: Roll back three months

  1. #1
    Registered User
    Join Date
    06-17-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Roll back three months

    Thanks to everyone on here, I am almost done with my spreadsheet to calculate attendance. I am the one that needed to cauculate points by rolling back three months from the current date. I also needed to track FMLA by rolling back 12 months.

    I plugged everything in but on the final page that is supposed to have every employees total "rolling back three months", it calculates too much. Example as of today it should go back three months. (October 11, 2011 - January 11, 2012.). But it is adding points that occured before 10/11/11.

    I appreciate any help in fixing this formula. I think this is the last piece of the puzzle.

    I am trying ot attach it but it says the file of 2 mb is too big????????

  2. #2
    Registered User
    Join Date
    06-17-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Help with final roll back three months spreadsheet

    final test.zip

    Here. Will this work:

  3. #3
    Registered User
    Join Date
    06-17-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Help with final roll back three months spreadsheet

    Any ideas as to what is wrong?

  4. #4
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Help with final roll back three months spreadsheet

    If you want to include current month with previous 3 months, change these named ranges.

    Last3Months on refers to;

    =TEXT(DATE(YEAR(CurrDate),MONTH(CurrDate)-{3,2,1,0},1),"mmmm yyyy")

    SumColumn

    =DAY(DATE(YEAR(CurrDate),MONTH(CurrDate)-{2,1,0,-1},0))*3+3

    Delete the names & recreate with the new formulas. ALWAYS KEEP A Back up of your file.
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  5. #5
    Registered User
    Join Date
    06-17-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Roll back three months

    Where do I put these? What I want is the final total page to count the number of points going back a rolling three months to the day. Example: If today is January 11, 2012 it should count any points accured from 10/11/11 to 1/11/12.

  6. #6
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Roll back three months

    Press Ctrl+F3, select name Last3Months & click Delete. Then click Add, enter name as Last3Months on refers to enter,

    =TEXT(DATE(YEAR(CurrDate),MONTH(CurrDate)-{3,2,1,0},1),"mmmm yyyy")

    Click OK

    Select SumColumn & click Delete, then click Add enter name as SumColumn, on refers to,

    =DAY(DATE(YEAR(CurrDate),MONTH(CurrDate)-{2,1,0,-1},0))*3+3

    Click OK

    See the attached.
    Attached Files Attached Files
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0