+ Reply to Thread
Results 1 to 14 of 14

Tricky filtering

  1. #1
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Tricky filtering

    Hello world!
    In the attached file we have a list of tennis matches from a specific player "John Isner"
    What I would like to do is filter the data so that only the matches where his odds (the H or I column) are over 1.6.
    It would be very easy with the auto-filter, but the problem is that his odds are not always in the same column. When the match is won that is, when the L column is "positive" (2-0, 2-1, 3-0 etc), his odds are in the H column. When the L column is "negative", his odds are in the I column. Is there any way to filter this so the only visible cells will be where the "Q" column is "selected" and his odds are over 1.6, regardless of winning or losing the match?

    Thanks for your time!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    Hi,

    Why not add the helper column P and populate it with

    =(OR(H2>1.6,I2>1.6),"Selected","")

    Now autofilter using columns P&Q for the word selected in both columns.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    Thanks for your suggestion, I will look into it. I'm guessing it's an IF function and you forgot the IF. As it is, it doesn't help much because the result will always be "selected", since either H or I will always be higher than 1.6, and the formula can't tell which one is the one that I am looking for (John Isner's odds in this example).
    For example in row no. 4, John Isner's odds are 1.21 and the result will still be "selected" because his opponent's odds was greater than 1.6.

    But the concept of adding another helper column I will go into it further and see if I can adapt it. Thanks!
    Last edited by bibu; 04-05-2014 at 11:31 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    Yes, sorry about that, it should have started with =IF.

    Here's and amendment for the helper column P

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

  5. #5
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    Hmm. the 4th row is still "selected". Anyway, this is what I found to be working :
    Please Login or Register  to view this content.
    Thanks for your time!

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    Yes, there was a typo where I put H1 & I1 instead of course H2 & I2

  7. #7
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    Yeah I've just realized that myself would you say your solution is faster? Because the main sheet is already sluggish and I'd want to keep it as simple as possible.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    When you say sluggish, what do you mean? Are you referring to autofiltering Sheet1?

    I can't see why it should be. Once the formulae have been populated they won't be recalculating and in any case there aren't that many formulae and the workbook is hardly any size at all, hence I'm puzzled.

  9. #9
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    No, no, this is a mini-sample of the main sheet, the main sheet has 20.000 rows and tons of other calculations. So when I'm using a button to auto-filter through all that data and recalculate everything.. it takes 5-10 seconds, especially since most of the formulae are done by me, and they're not nearly as simple as they could be.
    Think
    Please Login or Register  to view this content.
    this and multiply it by fifty and add auto filtering through all of that, that's why it's sluggish

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    OK,

    The way to speed it up is to Range value all the formulae once you've created them. What I generally do is just keep the formulae on the first row so that when any data changes I can quickly copy it down and then copy and range value again.

    This should return the speed top normal.

  11. #11
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    Hmm, I don't even know how to "range value" a formula, but I will open a thread about speeding things up on my sheet, some other time. Thanks again for your help.

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tricky filtering

    Hi,

    Just select the whole range of formulae and then using the Ribbon menu pick the Paste...PasteSpecial....Values, select the top left hand cell in the range you're copying and click OK.

  13. #13
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Tricky filtering

    Done, cheers!

  14. #14
    Registered User
    Join Date
    04-05-2014
    Location
    Longdon England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Cool Re: Tricky filtering

    great thank you

+ 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. Tricky Tricky episode 2!!!
    By mhax in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2006, 10:15 AM
  2. trouble filtering a list. Why isn't column filtering?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 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