+ Reply to Thread
Results 1 to 3 of 3

Need a Search/Filter solution

  1. #1
    Registered User
    Join Date
    04-04-2010
    Location
    Okinawa, Japan
    MS-Off Ver
    2019
    Posts
    9

    Need a Search/Filter solution

    How do I create a search function or filter to return a department or office on a spreadsheet that contains multiple organizations that all contain multiple offices and also list the billets/positions that fall under them in the order they are listed? I?ve looked at a few things online and in books, but I?m not able to come up with a complete solution. I imagine it will be a mixture of a few things to make this work right. I?m hoping that there is a semi easy quick process to carry this out.
    Each organization contains a unique identifier. Organizations are arranged in a specific hierarchy. Larger department codes are listed with smaller office codes falling under them. Billets/positions are listed under all.
    For example use a department store that is broken up into functional areas/departments Lawn, lumber, paint, appliances. Under lawn you may have the subsections/offices of plants, lawn care, storage and tools with five billets/positions under each.
    The spreadsheet would list the records in this manner:
    Hierarchy Code Title
    D Department Store
    E Manager
    E Asst Manager
    D Lawn
    E Supervisor
    O Plants
    E Employee 1
    E Employee 2
    O Lawn Care
    E Employee 1
    E Employee 2
    O Storage
    E Employee 1
    D Lumber

    So if I wanted to search for lawn the result would be:

    Hierarchy Code Title
    D Lawn
    E Supervisor
    O Plants
    E Employee 1
    E Employee 2
    O Lawn Care
    E Employee 1
    E Employee 2
    O Storage
    E Employee 1

    This will need to be applied to a new spreadsheet that contains over 13,000 records each month that changes from the previous month.
    Thanks all. Looking forward to hearing how you would achieve this.EXCEL PROBLEM.xlsxEXCEL PROBLEM.xlsxEXCEL PROBLEM.xlsx
    Last edited by GriffonOki; 06-09-2023 at 12:55 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Need a Search/Filter solution

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Need a Search/Filter solution

    It was not clear... but I assumed that you wanted to search for ONE department in ONE store...

    =LET(A,A3:E26,B,A2:E2,C,SCAN("",IF(INDEX(A,,5)="D",INDEX(A,,4),""),LAMBDA(x,y,IF(y="",x,y))),VSTACK(B,FILTER(A,(INDEX(A,,2)=G1)*(C=G2))))

    See file. Delete ALL expected results firts!!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

+ 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] Search solution for: Is a number in a certain range?
    By BeaglePapa61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2021, 11:10 AM
  2. [SOLVED] Solution To Filter Code
    By amonty78 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2018, 12:30 AM
  3. All combinations + search for optimal solution
    By Arthfael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2015, 12:03 AM
  4. Replies: 4
    Last Post: 11-08-2014, 04:57 AM
  5. Came In Search Of Solution
    By rbclarke in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-01-2014, 11:23 PM
  6. Hlookup or other search solution
    By Micos3 in forum Excel General
    Replies: 1
    Last Post: 03-03-2006, 02:30 PM
  7. [SOLVED] Complex Formula Solution using Search and IF
    By XP in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2006, 12:25 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