+ Reply to Thread
Results 1 to 3 of 3

Headcount by month when end date is blank or employee only worked a few days in a month

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    Dubai
    MS-Off Ver
    2013
    Posts
    2

    Headcount by month when end date is blank or employee only worked a few days in a month

    Dear all

    Hello - thanks for this forum - it seems really helpful! I am trying to calculate headcount per month and i tried two different formulas:

    - =--IF(AND($B2-DAY($B2)+1<=D$1,$C2-DAY($C2)+1>=D$1),1,0)
    - =($B11<=H$1) * (($C11>=H$1) + ($C11=""))

    however the first one works well but it only works when there is an end date. If the end date is blank (current employee)
    the second solution works but if the person only worked a few days in the month, they appear as 0 headcount

    i guess my two issues are:
    - when an employee has only worked a few days in a month (which is solved by the above)
    - when the end date is blank

    Does anyone have a solution for this problem? Much appreciated

  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,624

    Re: Headcount by month when end date is blank or employee only worked a few days in a mont

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    08-15-2017
    Location
    Dubai
    MS-Off Ver
    2013
    Posts
    2

    Re: Headcount by month when end date is blank or employee only worked a few days in a mont

    many thanks. I attach the document
    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] Need to calculate # of days per month between two dates even if end date is blank
    By jimthe5th in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-09-2023, 01:31 AM
  2. [SOLVED] Month Over Month Headcount with SUMPRODUCT
    By kdalyveris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2020, 04:55 PM
  3. [SOLVED] Employee headcount by month
    By Rokitt in forum Excel General
    Replies: 7
    Last Post: 11-17-2016, 05:17 PM
  4. [SOLVED] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  5. Date Formula for days of the month, new dates starting on the 2nd of the month.
    By Kenn Jerger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2013, 01:31 AM
  6. [SOLVED] Counting the days worked in a month by employee
    By Curtis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-08-2005, 01:20 PM
  7. [SOLVED] Counting te days worked in a month
    By Curtis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-07-2005, 01:10 PM

Tags for this Thread

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