+ Reply to Thread
Results 1 to 6 of 6

How to filter data for more than one variable

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    How to filter data for more than one variable

    Hi everybody,

    My issue is filter excel data in term of two variables, I would be highly appreciated for taking a look at my attachment and let me know how to filter simultaneously data for "E-value" and "Identity" columns (variables) so that just data (row) with "E-value" equal or less than 0.05 and "Identity" equal or greater than 50 is appeared. Thanks for your help and time
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to filter data for more than one variable

    See attached workbook for the example.
    You need to use the FILTER tool in the DATA menu.
    Then you can add specific restriction for each column by clicking
    on the little array that appears on the right of each title cells.
    Hope this helps
    Attached Files Attached Files
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: How to filter data for more than one variable

    Many thanks for your prompt reply. Just one so basic question, could you please let me know if there is any way to count the excel row number instead of scrolling down and see row number?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to filter data for more than one variable

    N2=if(and(C2<=$R$1,F2>=$S$1),"yes","")

    in which R1 holds 0.05
    in which S1 holds 50

    After that filter on column N.

    In that case you are more flexible (just change the criteria in R1 or / and S1 and filter on yes).

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: How to filter data for more than one variable

    Thanks a lot. Both solutions were great

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to filter data for more than one variable

    you could also put this formula in cell T1 which does not need to filter the data:
    Please Login or Register  to view this content.
    It uses the limit values you have in cells R1 and S1.

+ 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. Macro to filter a pivot whilst looping through filter criteria in a variable list.
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2015, 04:25 AM
  2. Variable Filter
    By tconnell1965 in forum Excel General
    Replies: 4
    Last Post: 07-07-2014, 11:46 AM
  3. [SOLVED] How to do Unique Filter from a variable
    By sathyasun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2014, 07:22 AM
  4. Using a macro to operate a filter on variable data
    By Timmy Pope in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 01:28 PM
  5. Replies: 1
    Last Post: 10-27-2012, 02:54 AM

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