+ Reply to Thread
Results 1 to 4 of 4

COUNTIF Function for employee schedule

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    COUNTIF Function for employee schedule

    Afternoon Guys,

    Been lurking on this site for a while without posting, so a big thanks to all of you who have unwittingly helped me out over the years.

    I am currently working on a spreadsheet for a Hospital Lab Department, I've got most of the sheet ready but I am currently stuck with a COUNTIF formula.

    Premise of the worksheet:

    The lab has approx 100 employees with each employee being assigned to a work station. These stations are coded and these codes are placed into a Master Schedule. The management staff have been asked to provide a report sheet to the Union on a bi-weekly basis. The idea behind this is to track employee hours for each department, hospital, and workstation.


    At one point the codes remained the same eg: MG-V1 so it was a relatively easy requirement of a COUNTIF looking through the two week period on the
    Master Schedule and multiplying the number of codes by the appropriate hours. I set up a sheet to do this no problem. However, after I presented the sheet the requirement changed. Instead of the codes remaining the same they are now going to get a prefix such as a 'V',(for vacation) so now, MG-V1 will become VG-V1 whenever an employee is moved from to replace the person going on vacation.

    My problem:

    There are 106 codes, any employee can use any or all 106 throughout the year, with the prefix applied this now becomes 530 codes.

    On my 'bi-weekly' tab, I have tried using COUNTIFS with ** wildcards to no avail, I have tried a nested if function without success, and am now at the point where I am having a brain cramp to come up with an easier solution. I don't really want to use five rows per employee x 100.

    I am providing the worksheet hoping that you guys could help me out.

    Critique or Diss the worksheet as well if you like :-)

    Thanks in advance,
    Last edited by BlindAlley; 05-31-2015 at 12:57 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,817

    Re: COUNTIF Function for employee schedule

    could you use a lookup table to reduce the codes back to the original

    VG-V1 = MG-V1
    MG-V1 = MG-V1

    and then use the countif() as you originally intended
    or have i missed something ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Nested COUNTIF Function for employee schedule

    Quote Originally Posted by etaf View Post
    could you use a lookup table to reduce the codes back to the original

    VG-V1 = MG-V1
    MG-V1 = MG-V1

    and then use the countif() as you originally intended
    or have i missed something ?
    Thanks for the reply Etaf,

    I was thinking along those lines but I need to track the codes with the prefix, converting them back may not help.
    Last edited by BlindAlley; 05-31-2015 at 01:33 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: COUNTIF Function for employee schedule

    I thought I had solved this by asking for the efix be added at the end of the code.

    Using a wildcard at the end doesn't solve the problem of tracking the prefixed hours.
    Last edited by BlindAlley; 05-31-2015 at 01:54 PM.

+ 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. Employee Schedule Help
    By SuperIntense in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2013, 05:57 AM
  2. Replies: 8
    Last Post: 07-15-2013, 07:13 PM
  3. employee schedule
    By jarrodguyer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-03-2010, 10:45 PM
  4. employee schedule
    By wingsofeagle in forum Excel General
    Replies: 1
    Last Post: 07-03-2008, 09:16 AM
  5. Employee Schedule
    By henrikjt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2006, 10:16 AM

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