+ Reply to Thread
Results 1 to 9 of 9

Formula to extract Employee work schedule report from "date of hiring list"

  1. #1
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Formula to extract Employee work schedule report from "date of hiring list"

    Hi guys,

    I have a small requirement that I need to complete. I attached the sample data file.

    I have a data sheet with employee hiring schedule. There are 8 employees and dates when they are hired by the company. Each employee is hired till the date it says that service stopped (thats when all the employees hired till that date are withdrawn from service).

    I need to prepare a report as to how many employees are hired on all Mondays from 30th of March till 30th of July and the list of names. (I inserted the layout of the report in the attachment).

    I tried doing a vlookup (TRUE) for the dates. But that didn't work out well. I think we can achieve this using VBA programming.

    Please help me with this report.

    Thank in advance,
    Ravi.
    Attached Files Attached Files
    Last edited by ravikiran; 10-13-2010 at 04:09 AM. Reason: Title Change

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need Help with Employee work schedule report

    First off - please remove "Need Help with" from your title - it adds no value and detracts from search facility

    You can do this with formulae if you want if you're prepared to use some lightweight helper calculations.

    First off I should point out initially there are some discrepancies in your sample:

    -- B8:B11 should be 09 rather than 10 I think

    -- I don't understand why in week 1 you show only one employee rather than two (#1 & #2) - if someone starts on a Monday surely they count in that week (ie #2)
    Attached is a basic example of a formula driven approach which reflects the following:

    to Data sheet we add the following calculations:

    Please Login or Register  to view this content.
    With the above in place we can generate the results matrix

    On the Report sheet first we insert a new Row 1 (ie blank row above dates) then:

    Please Login or Register  to view this content.
    The above is all possible given the Data sheet info. is sorted by Date Started column.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Sorry - I withdrew this post. I can do a simple countif in the final report after applying your formula.

    Thank you,
    Ravi.

    Thank you so much Don (I am not sure of your name).

    This helps me a lot. A small additional favor.

    What should I do if I just want the number of employees hired on a particular date?

    Thanks once again for the help.

    Ravi.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    I don't follow - the example doesn't make a great deal of sense (or is incomplete)

  5. #5
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Thanks Don.

    Seems my requirement is sort of taken care by your formula. Thanks for that.

    Can you explain how exactly the "lookup" and "weekday" functions work? That will help me in knowing these functions better.

    Ravi.

  6. #6
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Small change in the requirement, if the there is a "Service Stopped", then we should start a fresh count. Example, when it says "service stopped" on 17th May, from 15th June on wards it should count only 1 employee (i.e. Emp #5) and on 22nd June there will be 2 employees ( Emp #5 and Emp #6).

    Please see if can help me re-write the formula to achieve this requirement. Thank you.

    Ravi.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Quote Originally Posted by ravikiran
    if the there is a "Service Stopped", then we should start a fresh count.
    Using my earlier sample file:

    Please Login or Register  to view this content.
    edit: above is ok - remainder needs to be altered - will post back.

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Having thought some more about this... attached is a further example in which by altering Report!T1 from 0 to 1 you can get either/or
    (ie 0 will be as before, 1 will be per 2nd requirement)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Formula to extract Employee work schedule report from "date of hiring list"

    Don,

    That worked for me.

    Thanks a ton.

    Ravi.

+ 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