+ Reply to Thread
Results 1 to 8 of 8

HR Data, Multiple Years by Month in columns

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    3

    HR Data, Multiple Years by Month in columns

    Good afternoon Everyone,

    I'm fairly experienced with excel but I'm struggling to find a solution to my problem and would appreciate any help/advice.

    I have massive amounts of HR data split in to multiple worksheets by fiscal year. My column headers are the employee number, the account string charged, followed by the 12 months of our March to February fiscal year as text.

    Unfortunately each employee often has multiple lines per year, as they may be charged to multiple account strings.

    What I'm trying to do is combine all this data into something useful that I'll be able to summarize by employee number and a date range, while retaining the account combinations. It would be useful to be able to summarize by account combination and employee number, for specific date ranges as well.

    Unfortunately I can't for the life of me think of an efficient way to organize this data towards that result. My first thought was to identify the calendar year and month for the month headings and combine all the fiscal years on one spreadsheet. I would then import this into access and use it to summarize the data. This didn't work due to matching up the data by employee number, account code and month/year. It simply takes too long and crashes excel with the lookups even when using sorted data and doing one year at a time with approximate match.

    My second attempt was to combine the data on one worksheet, keeping the headings as they are, but adding an additional column for fiscal year.. this is where I am now stalled.

    Using access to accomplish this has also defeated me. It can summarize by employee number, but if I want to keep the employee number and the account string, as well as separating salary and benefit lines, it doesn't work with the current data setup as it seems to give me multiple lines of the same totals and throws off the figures.

    Any advice on getting this data into a usable format would be appreciated. I won't provide a large sample due to confidentiality concerns, but I've included a brief mock up of the table headings below:

    Employee # Account String March April May June July August September October November December January February Fiscal Year
    00001 12345-1234-1234-12345 5000 4000 5000 5000 5000 5000 5000 5000 5000 3500 5000 5000 2014-15
    00001 12345-1234-1234-99999 5000 4000 5000 5000 5000 5000 5000 5000 5000 3500 5000 5000 2015-16
    00001 12345-1234-1234-77777 250 350 500 500 500 500 500 500 500 350 500 500 2014-15

    Thanks in advance!
    Last edited by RandomSanity; 06-27-2017 at 08:54 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: HR Data, Multiple Years by Month in columns

    without example file it's hard to say, but you can try PivotTable with subtotals

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: HR Data, Multiple Years by Month in columns

    I'd restructure your data like attached (see sheet2).

    This can be done via PowerQuery or VBA. Since you have Excel 2010, I'd suggest using PowerQuery.

    For PowerQuery.
    - First convert data to Excel Table
    - Load Table to PowerQuery
    - In the editor move Fiscal Year column to 3rd position
    - Select all "Month" columns and right click -> Unpivot columns
    - Rename Attribute column to "Month"

    From there, you can use PivotTable to summarize data by Employee# and/or Account string.

    Note: You may also want to add date column (i.e. 1st date of month including year). This allows use of timeline slicer and other time intelligence.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    03-28-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: HR Data, Multiple Years by Month in columns

    Quote Originally Posted by CK76 View Post
    I'd restructure your data like attached (see sheet2).

    This can be done via PowerQuery or VBA. Since you have Excel 2010, I'd suggest using PowerQuery.

    For PowerQuery.
    - First convert data to Excel Table
    - Load Table to PowerQuery
    - In the editor move Fiscal Year column to 3rd position
    - Select all "Month" columns and right click -> Unpivot columns
    - Rename Attribute column to "Month"

    From there, you can use PivotTable to summarize data by Employee# and/or Account string.

    Note: You may also want to add date column (i.e. 1st date of month including year). This allows use of timeline slicer and other time intelligence.
    Hi CK76,

    Thanks for the response. That looks like it would be helpful. It's been a few years since I updated my user information so I should mention that we've upgraded to Office 2016.

    I've tried the steps you've outlined with the build in query capabilities of 2016 and the data is simply too large to work with this and I get an error.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: HR Data, Multiple Years by Month in columns

    ...simply too large to work with this and I get an error.
    What's the error message that you get?

    I've dealt with over 2 mil rows of data without issue in PowerQuery (though I use 64bit Office & have 16gb Ram).
    What's your machine's spec?

    You may need to segment the data to manageable chunks.

  6. #6
    Registered User
    Join Date
    03-28-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: HR Data, Multiple Years by Month in columns

    The error I receive is too many rows for a worksheet. I can certainly try to do this for a few years at a time, and then combine in access if that is my best option, or look at multiple sheets with my summary.

    This is a step in the right direction at least.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: HR Data, Multiple Years by Month in columns

    Ah, I got you.

    You don't need to load the result back onto sheet. You can just load as connection only, while checking load to data model option.
    You can then use the data model as data source for pivot table to report on it.

    That way, you won't run into row limit issue.
    Last edited by CK76; 06-27-2017 at 10:01 AM. Reason: For clarity & grammar.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: HR Data, Multiple Years by Month in columns

    Here's sample pivot table loaded directly from data model.
    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. Replies: 10
    Last Post: 03-26-2014, 09:37 PM
  2. [SOLVED] Help in making month cumulative of years of daily data
    By ropbasuel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2013, 12:12 PM
  3. Averaging Years of Data by Month
    By mstuhec in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2013, 12:47 PM
  4. Sum month columns into years
    By imholter in forum Excel General
    Replies: 3
    Last Post: 06-29-2012, 09:52 PM
  5. Replies: 7
    Last Post: 07-29-2010, 01:36 PM
  6. Replies: 3
    Last Post: 02-10-2010, 09:49 AM
  7. same month/day on x axis for multiple years
    By mjo73 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-15-2006, 02:25 PM
  8. Replies: 1
    Last Post: 12-05-2005, 08:35 AM

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