+ Reply to Thread
Results 1 to 7 of 7

Staff Holiday Planner

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Staff Holiday Planner

    Hi all,

    I have tried a few different approaches, but no luck. I am trying to build a staff holiday planner, that would then return all the dates between start and end of their holidays.

    Assume first couple of columns are for names and surnames, the following 365 columns represent every day of the year. This is the sheet I want to get results in (call it RESULTS). The database for staff holiday is on another sheet: again 2 columns for names and surnames, 3rd column for start dates and 4th column for end dates.

    Question: how do I plot all staff holidays in those 365 columns? Logic would look like this: in the row find JOHN SMITH on a database and return "H" between his start and end of holidays, go searching in the next row until the end of the list.

    I'm not the best at describing what am I trying to achieve, so attached a dummy with desired results.

    Guys, any help I will much appreciate!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Staff Holiday Planner

    =IF(SUMPRODUCT(--($B3=_t[NAME]),--($C3=_t[SURNAME]),--(D$2>=_t[FROM]),--(D$2<=_t[TO]))=0,"","H")
    _t is a name for your data
    Attached Files Attached Files

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Staff Holiday Planner

    How many employees are you likely to have?

    Pete

  4. #4
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Staff Holiday Planner

    500 max...

  5. #5
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Staff Holiday Planner

    Hi Tim,

    When I was replying yesterday the site has crashed. Your formula works fine on a dummy, but when I replicated everything on the actual workbook it throws an error on _t[NAME]... I have named the ranges as _t, but no luck.

  6. #6
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Staff Holiday Planner

    Bump........

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Staff Holiday Planner

    In the attached file I have used this formula in cell D3 of the RESULTS sheet:

    =IF(COUNTIFS(DATA!$A:$A,$B3,DATA!$B:$B,$C3,DATA!$C:$C,"<="&D$2,DATA!$D:$D,">="&D$2),"H","")

    and copied across and down to give you the desired results.

    I have also changed the way you generate the dates in row 2, so that you can easily change the year in cell A1 and the dates will automatically follow.

    Hope this helps.

    Pete
    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. Staff holiday planner
    By Partridge in forum Excel General
    Replies: 6
    Last Post: 08-04-2017, 09:05 AM
  2. working on a holiday planner based on various holiday anniversary dates
    By marktc19 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2017, 09:26 AM
  3. Staff holiday planner
    By chloe_cub in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2016, 07:23 AM
  4. Staff Planner - How To Set Up UserForm to Generate Data into Staff & Date Spreadsheet
    By Marie Snell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 11:04 PM
  5. Holiday Planner
    By Toonies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2011, 06:11 AM
  6. Holiday Planner show holiday taken?
    By Mac5 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2006, 01:23 PM
  7. holiday planner
    By jiwolf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-27-2005, 04: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