+ Reply to Thread
Results 1 to 5 of 5

Pivot Table to count how many left and joined each month

  1. #1
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    Pivot Table to count how many left and joined each month

    Hi All,

    I have a table of members and would like to create a pivot table to show how many members leave and how many join each month of the year.

    Sample attached.

    Thanks.
    Ian
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot Table to count how many left and joined each month

    Are you still using Excel 2010?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131
    Quote Originally Posted by Olly View Post
    Are you still using Excel 2010?
    I'm using office 365.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot Table to count how many left and joined each month

    Perfect. This is a great example of how Power Pivot makes this easy.

    Format your source data as a table, then load to the Data Model. I prefer to do this via Power Query, named "Member Data":

    Please Login or Register  to view this content.

    In Power Pivot, add a new Date Table. Note that you should not create any relationships to your Member Data table.

    Now add some measures to your model:

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Finally, create your pivot table using required fields:

    Capture.PNG

    See attached workbook for worked example.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    Re: Pivot Table to count how many left and joined each month

    Olly,

    Thank you for this it works great.

    I would just like to ask if this option will work in Excel 2010 also as on checking some PC's use Excel 2010 and some use 365 so require something universal if possible. If not a 2010 compatible version would really help.

    Once again thank you for the great support.

+ 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. IF statements to calculate what year a customer joined and left in
    By mitch992 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2019, 04:28 PM
  2. Change Pivot Table Fields Month by Month Automatically
    By phoebeyanan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2017, 04:03 PM
  3. Count Number of Employees Per Month Using Pivot Table Excel 2010
    By mclarke in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-26-2017, 08:56 AM
  4. Count Number of Employees Per Month Using Pivot Table Excel 2010
    By mclarke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2017, 04:21 PM
  5. excel, use pivot table to count activities by month and average by activity
    By dreamfalcon in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-25-2015, 11:38 AM
  6. Count in Pivot Table by Month - with random dates in data source
    By lindsgray in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-08-2015, 04:49 PM
  7. [SOLVED] Pivot Table Not Grouping by Month for Latest Month (groups > 7/20/2013)
    By justforthis1 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-04-2013, 12:28 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