+ Reply to Thread
Results 1 to 12 of 12

Roster

  1. #1
    Registered User
    Join Date
    02-01-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    11

    Roster

    can some 1 please help

    I am working on a work roster sheet and I need to work out how many people we need for the number of hours we have.

    So say we had 1350 hours work and everyone works 35 hours I thought i could just div 1350 by 35 but it comes up with an answer of 1.41 !!!

    Is my problem caused by me trying to div a number by a time value ?

    Any help would be cool

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Roster help

    Hi, just an attempt.

    1.41 probably means 1.41 pm: you should format the cell as number. More or less is 38,5.

    Hope it helps.

  3. #3
    Registered User
    Join Date
    01-23-2009
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Roster help

    an example worksheet would be helpful

  4. #4
    Registered User
    Join Date
    02-01-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Roster help

    Still can't get it to work.
    tried the above but I still get 1.41

    Have uploaded an example

    Thanks for the help
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Roster help

    Hi, try to change in E10 the formula in

    =E9/35*24

    Regards

  6. #6
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Roster help

    Hi
    Currently in your format excel is converting your time value 1183:50 to a decimal of 49.326 and then dividing this by 35 which gives you your 1.41.
    To overcome this you can convert your initial time value to decimal without the minutes. eg. A4 = 158, B4 = 175, C4=165, E8 =250 etc then your total hours for the week will be 1183.50 in decimal and then you can divide this figure by 35 to get your answer.

  7. #7
    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: Roster help

    CANAPONE's suggestion is correct. Another way that may be more intuitive, in E10:

    =E9 / "35:00"

    That's total hours divided by hours per person. The result should be formatted as General or Number.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    02-01-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Roster help

    Great Thanks guys for putting me right on this just 1 other question

    I am using the follow code to prefix 2 letters in a cell when a number is typed in
    but work now what to have a and b shifts after the duty numbers.
    When I type in the a or b the code will not pick it up and add the eh part as the cell is not a number.
    Any ideas how I could change it to do that.

    Thanks


    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell As Range
    Application.EnableEvents = False

    For Each cell In Target
    If Not Intersect(cell, Range("B6:B50,D6:D50,F6:F50,H6:H50,J6:J50,L6:L50,N6:N50,B57:B58,D57:D58,F57:F58,H57:H58,J57:J58,L57:L58,N57:N58")) Is Nothing Then _
    If IsNumeric(cell) Then cell = "EH" & cell.Value
    Next cell

  9. #9
    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: Roster help

    Please edit your post to add CODE tags.

  10. #10
    Registered User
    Join Date
    02-01-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Roster

    Sorry No idea what code tags are !!!!

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Roster help

    Hello Sprinter1801,

    If you select all of the code and then click on the # symbol in the list of formatting options above then you get "code tags" and it looks like this:

    Please Login or Register  to view this content.

    One of this forum's rules is that all code should be wrapped in code tags

  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

    Re: Roster

    Sorry No idea what code tags are !!!!
    Explained in the forum rules.

+ 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