+ Reply to Thread
Results 1 to 6 of 6

Filtering or displaying multiple conditions

  1. #1
    Registered User
    Join Date
    09-07-2022
    Location
    brisbane, australia
    MS-Off Ver
    office 365 MSO 16.0.12527.21296
    Posts
    3

    Filtering or displaying multiple conditions

    Hi all,

    First time poster so hello everyone....


    I have a spreadsheet with multiple data and I would like to filter it for specific data display.

    Ive attached the file to make it easier.
    Basically I have it working but only if I filter by 150 .My issue is how do i then filter e.g. 150 - 300 and 300 - 450 as options.

    Code I'm currently using is below but this only allows for the number in the drop box that is selected.Hopefully this makes sense.
    Please Login or Register  to view this content.
    Possibly a better way of doing it but I'm not that advanced at excel so any help would be greatly appreciated.
    Dean
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Filtering or displaying multiple conditions

    Try

    =OR(IF(AND(G12>=--LEFT($G$1,3),G12<=--(RIGHT($G$1,3))),IF(H12<>"",H12<=$G$2),IF(I12<>"",I12<=$G$3)))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    09-07-2022
    Location
    brisbane, australia
    MS-Off Ver
    office 365 MSO 16.0.12527.21296
    Posts
    3

    Re: Filtering or displaying multiple conditions

    thanks for your response, ive messed around with it but im not sure that its working correctly. Here is a screenshot.
    Attached Images Attached Images

  4. #4
    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,023

    Re: Filtering or displaying multiple conditions

    In all examples given so far, the edges have had 3 digits. Assuming that REALLY is the case:

    =AND(AND(G7>=--LEFT($G$1,3),G7<=--RIGHT($G$1,3)),AND(H7>=--LEFT($G$2,3),H7<=--RIGHT($G$2,3)),AND(I7>=--LEFT($G$3,3),I7<=--RIGHT($G$3,3)))
    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

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Filtering or displaying multiple conditions

    Change Validation List Source to: 0-150,151-300,301-450

    M7=AND(AND(G7>=--LEFT(SUBSTITUTE($G$1,"-",REPT(" ",10)),10),G7<=--RIGHT(SUBSTITUTE($G$1,"-",REPT(" ",10)),10)),AND(H7>=--LEFT(SUBSTITUTE($G$2,"-",REPT(" ",10)),10),H7<=--RIGHT(SUBSTITUTE($G$2,"-",REPT(" ",10)),10)),AND(I7>=--LEFT(SUBSTITUTE($G$3,"-",REPT(" ",10)),10),I7<=--RIGHT(SUBSTITUTE($G$3,"-",REPT(" ",10)),10)))

  6. #6
    Registered User
    Join Date
    09-07-2022
    Location
    brisbane, australia
    MS-Off Ver
    office 365 MSO 16.0.12527.21296
    Posts
    3

    Re: Filtering or displaying multiple conditions

    Thankyou all, that works a lot better. Even though I have no clue what it does I will research.

    thanks again

+ 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] Filtering values and displaying in different columns
    By panmuskul in forum Excel General
    Replies: 4
    Last Post: 02-08-2022, 01:38 AM
  2. Can I Use Check Boxes to Assign Multiple Filtering Conditions to a Table
    By mgriff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2021, 03:41 PM
  3. Dynamic filtering with multiple (5+) conditions
    By Jack12345* in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2020, 05:57 PM
  4. Displaying Top Items in a Pivot by Multiple Conditions
    By 5150 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-26-2014, 02:51 PM
  5. Filtering and displaying results
    By aletukas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2013, 04:42 PM
  6. Filtering & displaying list by user input
    By not_quite_excelling in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2011, 03:40 AM
  7. Displaying Search results (filtering?)
    By Klok in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2009, 06:45 AM

Tags for this Thread

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