+ Reply to Thread
Results 1 to 3 of 3

Advanced Filter - calculated reference as the criteria

  1. #1
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Advanced Filter - calculated reference as the criteria

    I'm trying to use Advanced Filter to show me the records where the REVPAR is between a calculated range of values.

    If there is an easier way than what I have setup, please suggest as much. I am wanting to see records where the REVPAR is less than/greater than a percentage of a specific REVPAR value (F4). Since I cannot figure out how to do this within the Criteria Range, I've established two cells (O3 & P3) which show the upper/lower limits of the value range I'm restricting within.

    To the Filter, I'm saying: Show me the records where the REVPAR is within a 20% plus/minus bracketing of the Subject's REVPAR (F4).

    I tried using a Formula Reference as the criteria (O6 & P6) as suggested on various Internet sources, but cannot get it to act as a less than/greater than query.

    I've attached a test xlsx for reference.

    Let me know where I need to clarify on this request.

    Thank you,
    Delain
    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: Advanced Filter - calculated reference as the criteria

    Hi

    Change
    O2 & P2 to read 'RevPar'

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

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


    Now with the Advanced Filter use O2:P3 as the criteria range.

    Here's a macro that will do it for you

    Please Login or Register  to view this content.
    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 delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Advanced Filter - calculated reference as the criteria

    Such a beautiful thing!

    Thanks Richard. I had a feeling there was a particular syntax with the < and > operators I didn't understand; didn't see anywhere else suggesting that you can concatenate with a formula string in the criteria.
    And the macro snippet will definitely get used.

    Thank you,
    Delain

+ 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] Advanced Filter Code : Criteria Range More Than 1 Row Breaks Filter
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2021, 04:30 PM
  2. [SOLVED] Using cell reference in Advanced Filter
    By L.LEE in forum Excel General
    Replies: 1
    Last Post: 11-11-2014, 10:47 PM
  3. Advanced filter for several criteria
    By TheBuginator in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-11-2014, 04:48 PM
  4. Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2014, 10:06 AM
  5. Excel VBA - Advanced Filter Variable Cell Reference
    By focusmm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2008, 05:34 PM
  6. Advanced Filter Criteria
    By ions in forum Excel General
    Replies: 2
    Last Post: 10-10-2006, 09:50 AM
  7. [SOLVED] Help req with advanced filter criteria
    By Jimbo in forum Excel General
    Replies: 5
    Last Post: 01-28-2005, 09:06 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