+ Reply to Thread
Results 1 to 5 of 5

Help with Totals using VLOOKUP/SUMIF for employee timetables.

  1. #1
    Registered User
    Join Date
    07-06-2014
    Location
    Coventry
    MS-Off Ver
    2010
    Posts
    3

    Help with Totals using VLOOKUP/SUMIF for employee timetables.

    Hi All,

    First post here so go gentle I have a project to redesign our store timetable to make it more efficient to timetable our staff. I have decided to go along the lines of Data Validation to enter in each employees shifts, using a table on a separate sheet (Shifts) with the different types of shifts in column A and the amount of hours each shift is in B. E.g, 9-5 in A1 8 in B1. The spreadsheet will have to have a different sheet for each week as I have done (Week x Week y etc.), as we need to keep a record and we also have a far amount of staff.

    What I need is a formula to total up each employees hours per week at the end of the timetable in the column entitled Totals, whilst only displaying the data in column A of Shifts in the actual timetables. For example it will make it easy for Jack to see he is working 9-5 Monday and 12-4 Tuesday that week a total of 12 hours without displaying the 8 and 4 on the actual timetables associated with each of the shifts.

    All my googling has led to VLOOKUP, which won't work I don't think, then some references to SUMIF as well, which I can't get to work. It's bugging me now as it is a pretty simple idea to just display one thing (the shift) but actually total up the hours column associated to each shift in the Shifts sheet, according to which shift the manager has selected using the Data Validation drop down .

    Will try to attach the sheet, let me know if I have done it wrong....


    I'm a basic user for now so basic explanations of what each formula you may suggest is actually doing would be great.

    Thanks in advance,
    Timetables.xlsx
    Mike

  2. #2
    Registered User
    Join Date
    07-06-2014
    Location
    Coventry
    MS-Off Ver
    2010
    Posts
    3

    Re: Help with Totals using VLOOKUP/SUMIF for employee timetables.

    UPDATE.

    Just realised that the Data Validation didn't include the SICK HOL DUTY shifts etc, so have updated the validation to A:A rather than A6:...

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with Totals using VLOOKUP/SUMIF for employee timetables.

    Hi and welcome to the forum

    See if this is what you want...
    =SUMPRODUCT((Shifts!$A$2:$A$53=B3:H3)*Shifts!$B$2:$B$53)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-06-2014
    Location
    Coventry
    MS-Off Ver
    2010
    Posts
    3

    Thumbs up Re: Help with Totals using VLOOKUP/SUMIF for employee timetables.

    Thank you for the reply, that's absolutely brilliant works a dream!

    Really appreciate that!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with Totals using VLOOKUP/SUMIF for employee timetables.

    Glad it worked for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-21-2014, 02:46 AM
  2. [SOLVED] Consecutive Employee Vacation Days using sumif array with frequency and column functions
    By ciaran01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 10:24 AM
  3. excel spreadsheet that totals employee hours for the week
    By SCCULLEN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-06-2013, 01:08 AM
  4. TimeTables
    By Bruiser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2006, 11:25 PM
  5. Totals sheet - deal with employee names
    By babs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2006, 02:35 PM

Tags for this Thread

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