+ Reply to Thread
Results 1 to 16 of 16

Filter multiple columns

  1. #1
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Filter multiple columns

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Re: Filter multiple columns

    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,922

    Re: Filter multiple columns

    If you are filtering on the ID, then why would you need to filter on any other field. Is not the ID unique?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    Maybe something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,447

    Re: Filter multiple columns

    Hi Malagon,

    Try this formula in B5.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Re: Filter multiple columns

    Please Login or Register  to view this content.
    Thanks

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    You have been given two formulae. One filters on the last and first names, and the second on just the last name (in cell D2).

    I¿m not sure what you are trying to achieve. You have only one cell, D2, for the search value (last name). For my suggestion, I selected E2 for the first name.

    How do you want to filter on all of those fields? Do you want to make cell B2 a drop down where you choose the filter, and then D2 contains the search parameter?

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    You could, for example, use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change B2 to "Search Department" (no quotes) and D2 to "IT Services". You could perhaps use Data Validation to complete both input cells.

  10. #10
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Cool Re: Filter multiple columns

    Please Login or Register  to view this content.
    Last edited by Malagon; 05-29-2025 at 10:40 PM.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    Please see the updated sample file and see if it does what you want.

    I have added a Reference sheet that extracts the headers for the primary drop down list and unique lists for each of the columns.

    If you change the primary input cell, Conditional Formatting will highlight the secondary input cell as a prompt to select a valid entry.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Re: Filter multiple columns

    Please Login or Register  to view this content.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    Select cell D2. Choose Data | Data Validition. Select the Error Alert tab. Change Style to Warning or Information. OK out.
    Last edited by TMS; 05-31-2025 at 07:18 PM. Reason: Fix typo.

  14. #14
    Registered User
    Join Date
    10-12-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    77

    Re: Filter multiple columns

    Please Login or Register  to view this content.

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    You're welcome.


    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

    You know, you don't have to put your text in tags

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,010

    Re: Filter multiple columns

    Thanks for the rep.

+ 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. Replies: 2
    Last Post: 12-23-2020, 02:11 PM
  2. Replies: 3
    Last Post: 01-18-2018, 12:20 PM
  3. Replies: 5
    Last Post: 11-24-2014, 11:58 AM
  4. Using filter to highlight/filter duplicates in multiple columns but within 1 day
    By DaveBre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2014, 04:07 AM
  5. Macro to filter multiple columns of data to multiple work sheets
    By LISSANN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 07:24 PM
  6. Filter multiple columns based on multiple data validation fields
    By Jhunnieboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2014, 03:41 PM
  7. Replies: 2
    Last Post: 06-15-2012, 05:34 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