+ Reply to Thread
Results 1 to 12 of 12

New idea on creating Excel files to automatically determine proper entry

  1. #1
    Registered User
    Join Date
    04-22-2008
    Posts
    24

    New idea on creating Excel files to automatically determine proper entry

    As you may recall, I have posted about creating an Excel worksheet which would help determine proper entry into a retirement plan. Another idea that I had entailed setting up a separate worksheet which would return the dates of entry following an employee's date of hire. Therefore, an employee hired on 8/5/2005 would have dates of entry following that stand at 1/1/2006 and 7/1/2006. Then, I had an idea of creating a formula or function to add up the number of hours that the employee had worked.

    Setting up a separate worksheet with the number of hours that an employee worked during the initial eligiblity computation period and the subsequent computation periods (separate respective columns for the initial eligibility computation period and then for each subsequent computation period) would help. I would calculate using sum functions.

    So, to sketch this out:
    One sheet would have the employee's DOH

    Another worksheet would have the Dates of Entry subsequent to that DOH (e.g. for an employee hired 8/5/2005 the next Dates of Entry entails 1/1/2006, 7/1/2006, and 1/1/2007)

    Yet Another Worksheet would sum the total hours that an employee had worked since DOH on a month by month basis (i.e. the total number of hours than employee had worked since his or her DOH up to a certain point on a monthly basis; e.g. an employee hired on 8/5/2005 would have on the sheet the calculation of the hours this employee had worked as of from 8/5/2005 to 9/1/2005, then the next column would have the total the number of hours worked by the employee from 8/5/2005 to 10/1/2005, etc.)

    Finally, the worksheet with the DOH information would have a column which would (this would probably entail heavy use of VLOOKUP) snag the information as to how many months and years an employee had worked as of the subsequent Dates of Entry; if the employee had worked 1,000 hours and 12 months as of 1/1/2007, for example, the employee would enter the plan.

    To explain the situation further:
    The employee must work 1,000 hours during his or her initial eligibility computation period. That starts on the day of the first hour that an employee works for the company. So, an employee hired on August 1, 2005 who worked one hour on that day must 1,000 hours from then till August 1, 2006 to enter the plan as soon as possible. If the employee did not work 1,000 hours during that period, then the eligibility computation period shifts to the plan year. So, if the employee did not work 1,000 hours between August 1, 2005 and August 1, 2006, but did work 1,000 hours between January 1, 2006 and December 31, 2006 (this of course presumes the plan operates on a calendar year)
    Last edited by Enda80; 01-14-2009 at 09:18 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    If dates of working hours are in column A and the total hours for that day's shift are in B, you sum all the hours based on the dates as a filter. You could use something like:

    =SUMIF($A$2:$A$10000,">="&"7/1/2005",$B$2:$B$10000)-SUMIF($A$2:$A$10000,">"&"1/1/2007",$B$2:$B$10000) ....to get the second half of 2005. Edit the "dates" to filter for the next six months, the rest of the formula stays the same. Just expand the ranges to include all the data.

    You can use that technique to create a monthly summary chart, too, just set the dates to one month ranges.

    As for the eligibility, I'd check for each item the same way. DOH is in cell D1, then the same formula can be used to see if 1000 hours is reached by a specific date or not:

    =SUMIF($A$2:$A$10000,">="&D1,$B$2:$B$10000)-SUMIF($A$2:$A$10000,">"&D1+365,$B$2:$B$10000)

    Do an "IF" against that formula for the 1000, and you know if they made it or not:

    =if(SUMIF($A$2:$A$10000,">="&D1,$B$2:$B$10000)-SUMIF($A$2:$A$10000,">"&D1+365,$B$2:$B$10000)>=1000, "eligible", "ineligible")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-22-2008
    Posts
    24
    Thank you for your help, it proved quite enlightening and instructive.

    Note that I inserted two worksheets, Hours Worked By Month and Subsequent DOE. The latter sheet should produce the dates of entry following an employee's date of hire (e.g., an employee gets hired on 8/2/05, then subsequent dates of entry include 1/1/2006, 7/1/2006, 1/1/2007, and 7/1/2007). I have as yet not found a way to automate that process. I will do some further postings on message boards.

    Also, another problem:
    you will notice that in the sheet named Hours Worked By Month, I started with 1/1/2003 and then added 31 days to try to get to the first days of subsequent months. While approximating what I hoped to achieve (i.e. reaching the first day of subsequent months) one can see that I do not actually arrive at this desired result, since the 28-29 days of February, months less than 31 days long, and leap years got in the way.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    I don't see any work at all on Hours Worked By Month, so I don't know what layout you're trying to achieve.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Sorry, it was a little higher, my bad.

    In C1, enter:

    =DATE(YEAR(B1),MONTH(B1)+1,DAY(B1))

    ...and copy to the right.

  6. #6
    Registered User
    Join Date
    04-22-2008
    Posts
    24
    Well, thank you for your help and attention, I have revised the files appropriately.

    That said, the earlier problem still remains:

    Note that I inserted two worksheets, Hours Worked By Month and Subsequent DOE. The latter sheet should produce the dates of entry following an employee's date of hire (e.g., an employee gets hired on 8/2/05, then subsequent dates of entry include 1/1/2006, 7/1/2006, 1/1/2007, and 7/1/2007). I have as yet not found a way to automate that process. I will do some further postings on message boards.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    A lookup table can fix that for you, look at this addition on Subsequent DOE.
    Last edited by JBeaucaire; 01-02-2009 at 09:07 PM. Reason: removed attachment, see next post

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Added error checking to the new formulas on SUBSEQUENT DOE.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-22-2008
    Posts
    24
    Well, quite impressive, thank you very much. I have passed this on to my associate. Hopefully, this will serve matters well in our work. Thank you for your help and attention.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Glad to help.

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Enda, please read our forum rules about cross-posting before posting again.
    Entia non sunt multiplicanda sine necessitate

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Enda, please read our forum rules about cross-posting before posting again.

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