+ Reply to Thread
Results 1 to 5 of 5

Recognising Conflicts

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Recognising Conflicts

    Hi,

    Can anyone provide me with a formula or VBA for recognising conflicts in specific ranges?

    I have attached an excerpt of the spreadsheet I'm working on now for recording annual leave, and I want to be able to have something flag up when two people from the same dept are on holiday. i.e. if both Smith and Davies are on holiday on the same day.

    I hope this makes sense, apologies if not...it's the first time I've ever posted a on a Forum!!

    Thanks

    Staff Holidays - WIP.xlsx
    Last edited by bananas123; 02-24-2014 at 10:40 AM.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Recognising Conflicts

    You will need to post more information. Try uploading a version exactly the same as your current version, but with names replaced with mock names.
    right now there is no department listed for each individual. Are everyone in this table from the same department?
    Give a specific example of what you are looking for as well:
    Ex. Smith and Davies are both on Holidays on Jan 13th (see 02 and 03). I want cell O1 to turn Red, or I want cell 07 to say "Conflict", etc....
    Please click the * icon below if I have helped.

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Recognising Conflicts

    Thanks Melvinrobb,

    Yes they are from the same department and these are mock names. I currently have VBA modules to detect a specific colour in the spreadsheet, so if its pink it totals the holidays and if blue, its sickness (see attached). So as you've suggested I'd like to have a column for conflicts, rather than the cell changing colour. I have attached the actual spreadsheet and inserted mock names. This is the leave plot for the year 2014. As an example I want it to show a conflict for Joe and Dave if they are both off at the same time, at any point during the year. On the attached I have added dates that they're both off in Jan.

    Let me know if you require anything further and thank you.

    20140217_Staff Leave 2014 - Copy.xlsm

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Recognising Conflicts

    You say you would like a column for conflicts, but I am not sure how that would work. I created a row for conflicts (row 19), with a formula returning a number of conflicts. Hopefully something like this is what you are looking for.

  5. #5
    Registered User
    Join Date
    02-19-2014
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Recognising Conflicts

    Hi Melvinrobb,

    Thank you for your work on this. I thought it'd be a pain trying to get the column to display this info. The row displaying conflicts will certainly move me in the right direction!

    All the best.

+ 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. How do I see where my schedule conflicts?
    By Excelatexcel in forum Excel General
    Replies: 6
    Last Post: 09-29-2011, 09:38 AM
  2. How to prevent conflicts
    By sivdin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2009, 02:00 PM
  3. Range Name Conflicts
    By MickeyGreen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2008, 01:41 PM
  4. Save conflicts
    By Donna A in forum Excel General
    Replies: 0
    Last Post: 06-26-2006, 09:25 PM
  5. [SOLVED] Name conflicts
    By Mark in forum Excel General
    Replies: 0
    Last Post: 05-31-2005, 03:05 PM

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