+ Reply to Thread
Results 1 to 5 of 5

pulling out groups from master list

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    pulling out groups from master list

    I have a list of employee's that includes there shift and sub-department. What is the easiest way to look at that list and pull out a group of people? Lets say I want all the first shift inbound associates? or the second shift outbound? Would it be easier to do that with a formula or a macro?
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: pulling out groups from master list

    Have you tried a flter? That would be the easiest way.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: pulling out groups from master list

    What about a pivot table?

    You can group parent - child any way you like.

    In the attached find grouped Department > Sub department > Last name > First name.
    Attached Files Attached Files
    Dave

  4. #4
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: pulling out groups from master list

    I should have been more clear as to my needs. I have a spreadsheet that has to have static lists of the various shifts and departments in order to pull other information from other sheets in the workbook. The way I am doing it now is to filter the master employee list as mentioned above and then simply cut and past the information where I need it. This can take some time and can be problematic especially when adding or removing persons from the list.
    I thought it might be easier and faster to have a macro or a formula be able to pull the person, shift, and department out of the master list and group them together so that all I have to do is update the master employee list from time to time and have the sub groupings automatically update without a lot of cutting and pasting.
    Any Thoughts?

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: pulling out groups from master list

    OK.

    I retained Table1 from my previous upload. If you are not aware of it Tables resize themselves to fit their data. Saves having to edit formulas when adding/removing people from lists. Also you can change Table headers and formulas will self edit those changes automatically.

    In the attached find drop downs in I1:J1. The DV (Data Validation) lists for those are in V1:W5.
    The DV definitions are:
    Departments:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    SubDepartments:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then select from the drop downs and this formula will return what you want.

    In I3 filled down and across until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FlameRetired; 02-15-2019 at 02:04 PM.

+ 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. [SOLVED] Pulling Location from master list and populating table?
    By Battletoads in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2018, 09:05 PM
  2. Replies: 2
    Last Post: 06-06-2014, 02:12 PM
  3. [SOLVED] Pulling data from a master list
    By Kevin Stewart in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-27-2013, 03:54 PM
  4. [SOLVED] Pulling rows from a master list into separate pages
    By Maddyp in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-04-2013, 02:00 PM
  5. [SOLVED] Pulling data from master tab to other
    By milindmahajan08 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2011, 01:42 PM
  6. Pulling multiple groups of data from a single Cell
    By panamakevin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2010, 04:13 PM
  7. Replies: 1
    Last Post: 05-22-2006, 05:40 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