+ Reply to Thread
Results 1 to 4 of 4

totalling staff timesheets

  1. #1
    Registered User
    Join Date
    07-16-2004
    Posts
    12

    totalling staff timesheets

    Hi All,
    Hopefully this is in the right forums - if not, I apologise.

    I have a staff work rota spreadsheet where the shifts are summarised by letters for simplicity e.g.
    O= 0hrs,
    AL = 8hrs
    E = 8 hrs
    L= 8.5 hrs
    N = 10 hrs

    currently the months hours are totalled by hand, converting the letters to numbers which is laborious. Is there a way to auto total the rows based on the letters in it? I am guessing there is a way to total the number of AL (e.g. 7) and multiply that by the value of AL (8), then do the same for other letters for the final monthly totals but exactly how to do it has got me stumped

    Any help will be very well received.

    Thanks in advance

    B

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: totalling staff timesheets

    Assuming the data for shift type is in column C rows 2 to 20, use this in the cell cell where you need a total for AL

    =COUNTIF(C2:C20,"AL") *8

    similarly for L

    =COUNTIF(C2:C20,"L") *8.5


    etc

  3. #3
    Registered User
    Join Date
    07-16-2004
    Posts
    12

    Re: totalling staff timesheets

    works great - many thanks

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

    Re: totalling staff timesheets

    If you wish to total all in one cell:

    =SUM(COUNTIF(range,{"AL","E","L","N"})*{8,8,8.5,10})

    this will give you total hours

    (change range as appropriate of course)

+ 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