+ Reply to Thread
Results 1 to 6 of 6

How to count leaves for each date of the month

  1. #1
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Cool How to count leaves for each date of the month

    Hey All,
    I want to count leaves for each date of the month. please see the attached excel sheet and help me..
    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: How to count leaves for each date of the month

    Try

    J2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag towards the cells and down.!!!
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: How to count leaves for each date of the month

    Working fine but how can I count the substitute drivers as only one e.g. the driver Alberto and Brant must be counted as only one time as they have two schools but leave must be counted only one..

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: How to count leaves for each date of the month

    Try

    J2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: How to count leaves for each date of the month

    Try this ...

    =SUM(IF(($A$2:$A$265=$I2)*($D$2:$D$265=J$1),1/COUNTIFS($A$2:$A$265,$I2,$B$2:$B$265,$B$2:$B$265,$D$2:$D$265,J$1)))

    Enter with Ctrl+Shift+Enter.

  6. #6
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: How to count leaves for each date of the month

    thank you Phuocam working great, and I would appreciate if you explain the "1/" part in the formula...

+ 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. Replies: 1
    Last Post: 07-31-2014, 01:43 AM
  2. [SOLVED] Count how many taken leaves
    By puffyboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2013, 01:44 AM
  3. [SOLVED] calculation for leaves paid but not more then days of month and not more then balance leav
    By dinesh4you in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2012, 04:27 AM
  4. Getting a month count from non-standard date rules
    By damynx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2012, 08:22 PM
  5. Is it possible to count a cell with date as a month?
    By Lewis Koh in forum Excel General
    Replies: 9
    Last Post: 06-01-2010, 12:31 PM
  6. How to count Month and Date
    By marc5354 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2010, 06:29 PM
  7. Replies: 7
    Last Post: 11-16-2008, 05:48 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