+ Reply to Thread
Results 1 to 12 of 12

Filter List Based On Certain Criteria

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Filter List Based On Certain Criteria

    Hi

    I have a worksheet which is used to monitor the hours worked by certain members of staff. The staff are listed in column A and their hours are marked with a '1' under the header of each hour. Each member of staff is skilled in certain areas of work and their skill set is listed on a separate sheet.

    Cell B3 has a list of each skill set and I am looking the filter the members of staff based on the whether they are able to complete the selected work type. This will allow me to monitor whether the work type is being covered by at least 1 member of staff across the whole day.

    I will probably have to insert a code into the sheet in order for this work however I am unsure whether this is the correct action or where to start with this so any help would be appreciated.

    Attached is a test sheet as an example

    Test Sheet - Rota.xls

    Thanks

    Scott

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    HI Scott,

    You can get 1 basis the filter in B2 (as I found filter in B2 and not in B3) but where do you want that 1 to appear ? i.e., under which column starting from 8 to 5 ?

    If I select Admin in B2, I know "David" can do this type of work and I need to put 1 for that but where to put ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Filter List Based On Certain Criteria

    Hi DILIPandey

    Thanks for your reply,

    Yes you are right, the filter is in B2 and not B3. My mistake!

    I would like the 1's to remain under the relevant hours for the specific members of staff, but when I select the work type I would like to hide the rows which contain staff members who are not skilled in this area of work. Once the selected work type is deleted out of cell B2, and this returns to a blank cell, I would like every member of staff to be listed as before.

    I have attached an amended worksheet which displays those skilled under telephone and how I would like the sheet to be displayed. David, Daniel and Steven are hidden as they are not skilled in this work type however, once telephone is deleted from cell B2, I would like their names to reappear on the list.

    The skills on this worksheet differ slightly from the original attachment in order to filter staff.

    Test Sheet - Rota (Telephone).xls

    I hope my explanation makes sense and helps!

    Thanks

    Scott

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    HI Scott,

    Used some formulas and macro and below is what I come up with

    Test Sheet - Rota (Telephone).xls

    Please Login or Register  to view this content.
    Try using the attachment and let me know if this works


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Filter List Based On Certain Criteria

    Hi DILIPandey

    Thanks for your help, the sheet works with the dropdown however is it possible to display every member of staff when cell B2 is blank?

    The purpose of the sheet is to see the hours each staff member is working however if we require to view which staff members are available under a certain skill then the full list can be filtered based on the information from the skill tab

    Thanks

    Scott

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    Hi Scott,

    Two queries:
    1) There is no option in b2 to select blank .. that can be done i know
    2) if there is no selection in b2, then on what basis you want the staff to be shown in ROTA sheet ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Filter List Based On Certain Criteria

    Hi DILIPandey

    The idea behind the Rota sheet is we have a record of when each member of staff is available to work. This should be the primary view of the sheet and should be available to view when cell B2 does not have any contents. In the event that we want to see which members of staff are available to carry out cetain tasks, I would like to be able to select the work type at the top and for the names of the staff members to be filtered based on whether they are skilled in the selected work type. This will also filter the hours being worked by these members of staff. Once the content of B2 is deleted, the sheet returns to a full list of staff members and their working hours.

    Thanks

    Scott

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    So do you need when B2 is blank, all rows should be visible.. simple

    I have updated the formula in each cell to handle this and added a blank in your list as well
    why I was insisting on this point is that when no skill is selected, you have all employees available to work so why you want to show them separately ..
    See the attachment and let me know if this helps.
    Test Sheet - Rota (Telephone).xls

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Filter List Based On Certain Criteria

    Hi DILIPandey

    The filter works great however is it possible for the formulas to be added to the cells which contain the staff names as oppose to the cells which display the hours being worked?

    The reason I ask this is that a formula will be put in place to look up the hours being worked based on the information available on a seperate sheet. As the hours will be updated based on the information in column A, I would ideally like to leave these formulas untouched. I apologise that this formula is not on the test sheet however as I was looking to filter the names I did not insert it.

    Instead, can the formula be added to column A with the names feeding off the staff list on the List tab.

    Sorry for any inconvenience

    Thanks

    Scott

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    sorry.. I am not getting it now.

    Do you want to change the location of formulas.. so does that new location has everything as it is in present sheet where formula are currently staying ? This is why I was hesitating initially with the arrangement of your data but as you wanted, I followed you

    Now you have everything working and if you need shift.. you just need to check what all formula requires as of now and make sure when you move them, they get those required references Thanks.

    If this is a kind of new request, suggest you to start a new query thread.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  11. #11
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Filter List Based On Certain Criteria

    Hi DILIPandey

    Sorry to confuse matters...

    I would like a sheet where no formulas need to be added to the cells which contain the hours being worked and if B2 and any of the contents of A6:A11 match the data on the skill tab then the rows containing the matching name remain visable and those rows which do not match become hidden.

    Unfortunately, as different formulas need to be entered into the cells which contain the hours being worked, I cannot use the current format

    Thanks

    Scott

  12. #12
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Filter List Based On Certain Criteria

    Okay Scott... if you don't formulas in the place of hours, just copy them and paste special values OR just write 1 over to them. After this, filter will still work.. no issues on that side Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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