+ Reply to Thread
Results 1 to 8 of 8

Identify overlaps in employees and days

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Identify overlaps in employees and days

    Hi,

    I have a list of employees and their department of employment.

    I have a 4 week roster (monday to friday) with 5 slots each day.

    I want to assign departments to come in a particular day and work on a task eg tax to come in monday slot 1 and legal to come in monday slot 2.

    As I assign these departments, I want to figure out which departments clash on the day as some employees work in multiple departments.

    For example I have employee all employees that work in tax and legal so I can't get them to work on the same day and need to assign them separately.

    If possible, those clashes would appear in red on the desired results table and those that don't clash, appear normal.

    I hope this makes sense.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Identify overlaps in employees and days

    Do you mean only Tax and legal is having common employees. What about it, cyber, tele and stat.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Identify overlaps in employees and days

    All employee have tax and legal in common. However, cyber, tele, stat, IT don't have common employees. The basic problem is:

    If i assign a department to come in on a particular day, then people who overlap in those departments are highlighted in red.

    Hope that helps.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Identify overlaps in employees and days

    Select B3:F7. Formula for CF is. Set Format ->>Font->>Red

    =(COUNTIF(B$3:B$7,"Tax")+COUNTIF(B$3:B$7,"Legal"))>1
    For other ranges change the Row numbers.
    Eg: For B8:F12 use B$8:B$12 in formula.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Identify overlaps in employees and days

    Quote Originally Posted by kvsrinivasamurthy View Post
    Select B3:F7. Formula for CF is. Set Format ->>Font->>Red

    =(COUNTIF(B$3:B$7,"Tax")+COUNTIF(B$3:B$7,"Legal"))>1
    For other ranges change the Row numbers.
    Eg: For B8:F12 use B$8:B$12 in formula.
    Hi,

    I noticed that the formula has legal and tax hard coded, however when i try for IT and Legal (Employee 1,2,3) can be on the same day but it returns true.Is it possibe to make it dynamic as it only works for legal and tax.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,916

    Re: Identify overlaps in employees and days

    Try using the following as the conditional formatting rule for B3:F7
    Formula: copy to clipboard
    =OR(AND(COUNTIF(B$3:B$7,"Tax"),COUNTIFS(B$3:B$7,"<>")>1),AND(COUNTIF(B$3:B$7,"Legal"),COUNTIFS(B$3:B$7,"<>")>1))

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Identify overlaps in employees and days

    Hi @JeteMC, Thanks for your help.

    I noticed that the formula hard codes Tax and Legal. I may have other job titles that I need the formula to work dynamically.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,916

    Re: Identify overlaps in employees and days

    Three step process:
    1. Populate range R3:W14 (jobs) using: =COUNTIFS($P$3:$P$38,$P3,$Q$3:$Q$38,R$2)
    2. Populate range Y3:AC14 (days) using: =SUMPRODUCT((B$3:B$7=$R$2:$W$2)*($R3:$W3))>1
    3. Conditionally format B3:F7 using: =COUNTIFS(Y$3:Y$14,TRUE)
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. [SOLVED] How to identify # of Employees that should be working at any given time in a day
    By ijohnron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2017, 05:14 PM
  2. PLEASE HELP! Identify Dates of Missing Timesheets for Employees
    By PWM in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-09-2017, 04:08 AM
  3. Replies: 8
    Last Post: 04-02-2017, 08:54 PM
  4. Trying to identify date overlaps among multiple centers
    By mtjeerds in forum Excel General
    Replies: 11
    Last Post: 04-21-2014, 06:46 PM
  5. [SOLVED] How to identify absent employees across 2 worksheets with results on a 3rd worksheet
    By jshimko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-28-2013, 12:14 PM
  6. Replies: 4
    Last Post: 11-28-2010, 11:00 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