+ Reply to Thread
Results 1 to 12 of 12

roster

  1. #1
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    roster

    Hi Im looking for some help, I will try describe what im trying to achieve.

    I am trying to create a roster that auto calculates hours worked.

    for example cell a1 = 0800 - 2000
    a2 = workers name

    Is there anyway that when I type in the workers name it automatically adds 12 hours to his name on a second sheet. Not sure if this can be done and how complicated it would be, but im eventually looking to do this for about 50 employees.

    Any help appreciated

    Cheers

  2. #2
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    I have attached my roster to give a better idea of how it looks,

    cheers
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: roster

    You could list all the employees names on the second sheet and then use the CountIf function to count the number of times each name appears on the first sheet multiplied by 12 to give the hours.

    eg if the names are listed in column A of Sheet 2, you would use in Sheet 2 cell B2

    =COUNTIF(Sheet1!$B$12:$H$115,Sheet2!A2)*12

    This formula can be copied down column B and will automatically update as you add the names to Sheet 1

  4. #4
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Thumbs up Re: roster

    Cheers for that nice idea, only problem left is that shift hours vary between 12 - 16 hours. Any ideas?

    cheers

  5. #5
    Registered User
    Join Date
    08-01-2010
    Location
    American in Rovereto, Italy
    MS-Off Ver
    Excel 2010 home & Excel 2010 work
    Posts
    46

    Re: roster

    I wrote a search function and hour conversion function that should do the trick.

    I added a named Range called Roster which is searched by the Roster search function

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Gordon in Rovereto, Italy

  6. #6
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: roster

    If you don't want to use vba, you could add extra columns to show the hours for each time period using the formula

    Please Login or Register  to view this content.
    and then using the SumIf function in Sheet 2

    =SUMIF(Sheet1!$B$11:$N$117,Sheet2!A2,nSheet1!$C$11:$O$117)

    See the attached file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    Your a genius, works a treat just what I needed.

    Cant thank you enough.

    Cheers :D

  8. #8
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    Hey Folks,

    Spreadsheet is working a treat, thanks for that, Ive added in a drop down list for to select person working that shift. Was wanting to try and take it a bit further.

    i.e When person is selected for shift they no longer appear in the drop down list for that particular day, this basically so that same person cannot be chosen for 2 shifts on the same day.

    Any help or suggestions would be great.

    Cheers
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: roster

    You could use conditional formatting to highlight when a person appears more than once on the same day.

    See attached file.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    Thanks for this, it will certainly help but is there any way I can get the names to disapear from list when used once in that columb. Im thinking if the sheet is near full and only a couple of slots left It would be good if the list just showed the people available.

    Any Ideas

    Cheers

  11. #11
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    Managed to get this working using this method on this site http://www.contextures.com/xlDataVal03.html.

    All I need to figure out now is for the names not to show on the next day if they were night shift the day before.

    Any Ideas.

    Here is the most recent and up to date sheet.

    Cheers
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    08-20-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: roster

    Should have described my previous post a bit better, Name to be deleted from next day if day shift is selected but to remain if night shift is selected.

    Al help is apprieciated

    Cheers

+ 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