Closed Thread
Results 1 to 9 of 9

Month Over Month Headcount with SUMPRODUCT

  1. #1
    Registered User
    Join Date
    09-11-2015
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    3

    Month Over Month Headcount with SUMPRODUCT

    Hi,

    I'm trying to get the SUMPRODUCT formula to calculate month over month headcount. I can get the first month, but if someone is terminated, it continues to add everyone, even those that were terminated. I've included what I'm hoping the final product can look like. Any and all help is welcome!

    Thanks in advance!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Month Over Month Headcount with SUMPRODUCT

    Attach a sample workbook. 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 use the paperclip icon to open the upload window.

    View Pic

  3. #3
    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,209

    Re: Month Over Month Headcount with SUMPRODUCT

    Posting a small file will help in formulating a possible solution.

  4. #4
    Registered User
    Join Date
    09-11-2015
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    3

    Re: Month Over Month Headcount with SUMPRODUCT

    Attachment would help. First time user right here!
    Attached Files Attached Files

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Month Over Month Headcount with SUMPRODUCT

    In E2

    =SUMPRODUCT(($A$2:$A$22<=E$1)*(($B$2:$B$22="")+($B$2:$B$22>E$1)))

    Copy across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Registered User
    Join Date
    09-11-2015
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    3

    Re: Month Over Month Headcount with SUMPRODUCT

    Thanks, Ace! This worked.

  7. #7
    Registered User
    Join Date
    12-04-2020
    Location
    India
    MS-Off Ver
    windows10
    Posts
    2

    Re: Month Over Month Headcount with SUMPRODUCT

    Hi,
    I have a similar problem with headcount and to collate monthly headcount but the problem here is I have a dataset with employee ids, start date, end date. So we need to use the same dataset and apply the formula in a manner to get in from of each employee a headcount that when using a pivot gives us average headcount per month using average headcount from previous month + new hires - leavers. For example, for Jan the average headcount could be computed using average dec headcount + new joinees in Jan and leavers in Jan.
    Can anyone please suggest how can this be achieved.
    Thanks,
    Ridhima

  8. #8
    Registered User
    Join Date
    12-04-2020
    Location
    India
    MS-Off Ver
    windows10
    Posts
    2

    Re: Month Over Month Headcount with SUMPRODUCT

    The dataset looks like:
    Employee id Start date end date HEADCOUNT
    12345 12/30/2019 2/1/2020
    21345 1/2/2020 1/20/2020
    31245 12/31/2019
    41235 2/2/2020
    54321 12/31/2019
    13234 6/3/2020
    14345 4/2/2020 7/5/2020
    15435 12/31/2019 6/30/2020
    12543 12/31/2019
    11334 12/31/2019
    11223 4/2/2020
    11334 7/5/2020 7/31/2020

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Month Over Month Headcount with SUMPRODUCT

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Caclulate month of quarter (1st month - 3rd month)
    By kuraitori in forum Excel General
    Replies: 5
    Last Post: 07-15-2018, 03:53 PM
  2. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  3. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  4. [SOLVED] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  5. [SOLVED] SUMPRODUCT, OR, Less than Month & Less than Year
    By JUGGAKNOTZZ in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-01-2013, 10:51 AM
  6. Headcount Within Month
    By som3on3_10 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-25-2009, 03:37 AM
  7. Sumproduct using Month as one of the criteria
    By Statsman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2008, 02:21 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