+ Reply to Thread
Results 1 to 5 of 5

Payroll Calculations using a Sortable Table

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    Metro Detroit
    MS-Off Ver
    Excel 2010
    Posts
    3

    Payroll Calculations using a Sortable Table

    Hello there,

    This is my first forum post and I was wondering if anybody could help me out. One of my requirements is that I need to have a sortable table for inserting payroll information. Eventually this data is going to be turned to a Pivot Table. However, I am running into a problem when I have to calculate the total hours (see sample screenshot). Some employees clock in and out multiple times in one day so that the number of rows dedicated to each employee may change.

    I need some sort of smart formula that can calculate the grand total of each employee by reading column A and knowing when the text value changes. How can I do this using either Excel's built in functions or by using PowerPivot/DAX? Thanks in advance.



    Excel Screenshot Example.jpg
    Attached Files Attached Files
    Last edited by .h2o.; 07-12-2012 at 07:59 AM. Reason: Added Attachment

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

    Re: Payroll Calculations using a Sortable Table

    Hi and welcome
    perhaps post a small sample sheet instead of a picture?

  3. #3
    Registered User
    Join Date
    07-12-2012
    Location
    Metro Detroit
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Payroll Calculations using a Sortable Table

    I added a small sample sheet.

  4. #4
    Registered User
    Join Date
    07-12-2012
    Location
    Metro Detroit
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Payroll Calculations using a Sortable Table

    After doing a little bit of research, I think I can word this question better. What I really want to do is find a specific text string in column A (employee name) and then sum the values of an unknown number of rows in column G (day hrs worked) and have those calculated totals in a separate column (week total hours column H ). The number of rows to be summed is contingent on all the items in column A having the same value.

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

    Re: Payroll Calculations using a Sortable Table

    One possibility is using a Pivot Table ( grouped by months in the attached but you can also remove the grouping or group per year, quarter, etc..) Sample_Payroll.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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