+ Reply to Thread
Results 1 to 8 of 8

Staff holiday planner

  1. #1
    Registered User
    Join Date
    09-15-2016
    Location
    Cornwall
    MS-Off Ver
    2013
    Posts
    5

    Staff holiday planner

    Hello,

    I am trying to make a staff holiday planner, but not very good with excel. I know what I want, but cant work out how to get it.

    This is a screen shot of what I have:

    What I am after is every time I put H in a date, it deducts 1 from the remaining holiday number. Please can anyone tell me how to do that?

    Thank you in advance!

    Attachment 480524

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Help with staff holiday planner

    Attachment is invalid.

    Post a sample Excel file (not image) showing sample results by clicking "Go Advanced" then scroll down to "Manage Attachments"

  3. #3
    Registered User
    Join Date
    09-15-2016
    Location
    Cornwall
    MS-Off Ver
    2013
    Posts
    5

    Re: Help with staff holiday planner

    Oh, screenshot didn't work.

    I have staff name in column A, number of holiday days in column B, and then each column after that each column is 1 jan, 2 jan, 3 jan and so on.

    What I want, is every time I put H (to represent a days holiday) in a cell in a row that corresponds to a member of staff, I want the figure in their holiday number of holidays left, to reduce by 1.

    I hope that makes sense?

  4. #4
    Registered User
    Join Date
    09-15-2016
    Location
    Cornwall
    MS-Off Ver
    2013
    Posts
    5

    Re: Help with staff holiday planner

    How do I do a sample excel file

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Help with staff holiday planner

    With "Holiday Allowance" in B2

    "Holiday Balance" in C2

    Date in D2 onwards

    in C2

    =$B2-COUNTIF($D2:$BB2,"H") -- Change COUNTIF range as needed

  6. #6
    Registered User
    Join Date
    09-15-2016
    Location
    Cornwall
    MS-Off Ver
    2013
    Posts
    5

    Re: Help with staff holiday planner

    That's amazing, thank you!

    Now... is possible to also have the same thing happen but for half a day holiday (HB) deducting 0.5 of a day from the "holiday balance", how to I separate the two formulas in the same cell?

  7. #7
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Help with staff holiday planner

    =$B2-COUNTIF($D2:$BB2,"H")-(COUNTIF($D2:$BB2,"HB")/2)

    This just adds all the HB as 1 each and divides by 2. Hope that helps

  8. #8
    Registered User
    Join Date
    09-15-2016
    Location
    Cornwall
    MS-Off Ver
    2013
    Posts
    5

    Re: Help with staff holiday planner

    You are an absolute legend!

    And one last question. I have merged the cells above the dates to show the months, e.g A1-A31 is merged and says January. I have defined the name for these merged cells and in the dropdown name box in the top left I can quick navigate to that month.

    Call me picky, but I want to change the order so the months don't appear in alphabetical order, and are in month order. Is that doable?

+ 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. Holiday planner
    By andy16v in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2015, 01:14 PM
  3. 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
  4. Holiday Planner
    By Toonies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2011, 06:11 AM
  5. Holiday planner
    By jsmity in forum Excel General
    Replies: 2
    Last Post: 07-13-2010, 05:15 PM
  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