+ Reply to Thread
Results 1 to 6 of 6

Leave calendar to count number of days of leave left

Hybrid View

  1. #1
    Registered User
    Join Date
    06-02-2021
    Location
    Singapore
    MS-Off Ver
    Microsoft Excel for Office 365 MSO (16.0.12527.21762) 64-bit
    Posts
    5

    Leave calendar to count number of days of leave left

    Hi everyone,
    I am currently doing a leave calendar for my department and I cant seem to add up the number of days of leave they took in each month. For the leave calendar, they have to choose their name and whether they want a half day, full day leave or reservist. Half day=0.5, Full day=1, reservist = 0

    Thank you in advance!
    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: Leave calendar to count number of days of leave left

    In H2

    =SUMPRODUCT((INDIRECT(H$1&"!$A$3:$M$5")=Table1[@Names])*(((INDIRECT(H$1&"!$b$3:$n$5")="Half Day")*0.5)+(INDIRECT(H$1&"!$b$3:$n$5")="Full Day"))*((INDIRECT(H$1&"!$b$3:$n$5")<>"Reservist")))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    06-02-2021
    Location
    Singapore
    MS-Off Ver
    Microsoft Excel for Office 365 MSO (16.0.12527.21762) 64-bit
    Posts
    5

    Re: Leave calendar to count number of days of leave left

    Hi,

    How do I extend the formula for the whole calendar in the month? Cos I tried to input it in the other cells below but it does not get added up.

    Thanks.

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

    Re: Leave calendar to count number of days of leave left

    Change $5 to $25

    =SUMPRODUCT((INDIRECT(H$1&"!$A$3:$M$25")=Table1[@Names])*(((INDIRECT(H$1&"!$b$3:$n$25")="Half Day")*0.5)+(INDIRECT(H$1&"!$b$3:$n$25")="Full Day"))*((INDIRECT(H$1&"!$b$3:$n$25")<>"Reservist")))

  5. #5
    Registered User
    Join Date
    06-02-2021
    Location
    Singapore
    MS-Off Ver
    Microsoft Excel for Office 365 MSO (16.0.12527.21762) 64-bit
    Posts
    5

    Re: Leave calendar to count number of days of leave left

    I've done that but it couldnt add up. It remains as a "-"

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

    Re: Leave calendar to count number of days of leave left

    Pl see file.
    Revised formula in H2
    =SUMPRODUCT((COUNTIF(INDIRECT("Table1[@Names]"),INDIRECT(H$1&"!$A$3:$M$25")))*(((INDIRECT(H$1&"!$b$3:$n$25")="Half Day")*0.5)+(INDIRECT(H$1&"!$b$3:$n$25")="Full Day"))*((INDIRECT(H$1&"!$b$3:$n$25")<>"Reservist")))
    Tip:
    In Monthly sheets formula is

    =((COUNTA(Team!A2:A10)-(COUNTIF(B3:B5,"full day")+COUNTIF(B3:B5,"half day")))/COUNTA(Team!A2:A10))

    It should be replaced

    =((COUNTA(Team!$A$2:$A$10)-(COUNTIF(B3:B5,"full day")+COUNTIF(B3:B5,"half day")))/COUNTA(Team!$A$2:$A$10))

    Otherwise When formula is copied it creates problem.
    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] Leave calendar to count the number of days of leave each staff has left
    By Fads in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2021, 02:39 AM
  2. Replies: 6
    Last Post: 02-13-2019, 05:47 AM
  3. [SOLVED] Leave tracker - how to use formula to automate the total leave days
    By yiyi2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-16-2018, 10:59 PM
  4. Replies: 3
    Last Post: 03-10-2017, 03:44 PM
  5. Replies: 5
    Last Post: 03-03-2015, 01:38 PM
  6. Need only leave days one by one from leave attendace full data
    By sathiyamoorthy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2014, 03:23 AM
  7. count Special Leave max 10 days only
    By Dahlia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2014, 02:37 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