+ Reply to Thread
Results 1 to 3 of 3

PIVOT - Number of employees per month

  1. #1
    Registered User
    Join Date
    05-20-2009
    Location
    Switzerland
    MS-Off Ver
    Excel 365
    Posts
    45

    PIVOT - Number of employees per month

    Hello,

    I am trying to make a pivot table report based on our employee database via an ODBC query and need the help of some the real experts :-)

    In my data I have the following fields:

    Company, Department, Name, Date in service, Date out of service

    In my pivot I have a start and end date (example 1-1-2015 till 31-12-2015)
    Any employee not actively in service will be filtered out in the query (date out of service >= [Start date] or Null)

    Now my big challenge:

    I would like to build a pivot table which lists all employees by department and show for each month of the year if they were in service

    I have attached an Excel showing the data that I get from my database and the pivot which I would like to build

    Can someone help me and tell me if it will be possible to create such a pivot if so how?
    The problem is that I only have 2 dates per employee; in service and out of service
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: PIVOT - Number of employees per month

    Hello obionenairobi,

    I think I understand your requirement!

    I have added 12 "Helper Columns" to your DATA sheet, which determine if your employee has been working in each month.

    This is the formula:
    Please Login or Register  to view this content.
    I then created the PT picking up those new columns.

    I assumed that you would not want to display "31/12/2999", so using Conditional Formatting in the PT, I made the text white.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".
    Attached Files Attached Files
    Last edited by David A Coop; 08-26-2015 at 03:07 AM.

  3. #3
    Registered User
    Join Date
    05-20-2009
    Location
    Switzerland
    MS-Off Ver
    Excel 365
    Posts
    45

    Re: PIVOT - Number of employees per month

    I am going to be a pain but do you know if it is possible to have an empty field instead of a zero value?

    I have used conditional formatting to have a white font for values of zero but perhaps there is a way to have directly empty fields

+ 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: 0
    Last Post: 09-09-2014, 07:38 AM
  2. [SOLVED] Need formula to calculate commissions for employees based on the month earned on 2 sheets
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2013, 12:09 AM
  3. How to chart how many employees hired by month and year
    By dragonbonetattoo in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 06-03-2013, 05:20 PM
  4. macro for sending emails to employees on a particular date of each month
    By hiteshdemla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2013, 08:47 AM
  5. Pivot: Deselecting months by month number
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2012, 10:41 AM
  6. Extract a list of employees according to month
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2010, 05:38 AM
  7. sort employees by birth month?
    By Ltat42a in forum Excel General
    Replies: 4
    Last Post: 02-15-2008, 11:12 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