+ Reply to Thread
Results 1 to 4 of 4

VBA to tabulate by different statuses and shifts

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA to tabulate by different statuses and shifts

    Hello All

    Attached is a sample of an employee database that I'm trying to get tallies from.

    The "Data Input" tab in the sample has two columns (but three pieces of information) I need to work with to get the info to the "Results" tab. (IN REALITY the employee list will be about 2500 people).

    I'd like it to tally the total number of people in each work department. The numbers 1,2,3 in the work dept column, after the actual job listing (which are copied from another program into Excel) represent the shift number. They are always at the end of the work department.

    Secondly, (but third piece of info) I would like have the results sorted with active employees (those that aren't on LOA) and also the total WITH people on LOA (hence the two different tables in the "Results" tab). Any leave ALWAYS starts with "LOA" so it can disregard what comes after those three letters, but still count them in "Total" results on the "Results" tab.

    Is this possible? If so, how can I achieve this?

    Thanks for any help!
    Attached Files Attached Files
    Last edited by atatbl; 07-06-2017 at 09:48 PM. Reason: moderator request

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: How to use VBA for this?

    title updated....
    Last edited by protonLeah; 07-06-2017 at 11:51 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to use VBA for this?

    Sorry for the trouble. I changed the title. Does it comply now?

  4. #4
    Registered User
    Join Date
    09-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA to tabulate by different statuses and shifts

    Any help here would be appreciated. I've been researching vids/aricles from the stickies here (like this one http://www.mrexcel.com/articles.shtml) but I'm not sure where to start.

+ 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