Linkedin
Sign in
  • Blog
  • All Posts
  • Business & Economics
    • Accounting & Finance
    • Analytical Charting
    • Analytical Methods
    • Business Statistics
    • Cash Flow
    • Data Management
    • Data Visualization
    • Economic Indicators
    • Financial Analysis
    • Forecasting & Simulation
    • Inflation & Deflation
    • Public Company Data
    • Reporting
    • Tests & Validations
    • Time Value of Money
  • Excel Methods
    • Charting Methods
    • Conditional Formatting
    • Data Management
    • Error Reduction
    • Excel Dashboards
    • Excel Tables
    • Excel’s Graphic Tools
    • Printing
    • Report Tables
    • Shortcuts
    • VBA
    • Worksheet Interaction
  • Formulas & Functions
    • Aggregation Functions
    • Array Formulas
    • Counting Functions
    • Date-Time Functions
    • Dates and Times
    • Dynamic Array Formulas
    • Financial Functions
    • Functions Explained
    • Logical Functions
    • Lookup Formulas and Functions
    • Math Functions
    • Range Names
    • Rounding Functions
    • Statistical Functions
    • Text Functions
  • Excel Strategies
    • Analytical Methods
    • Excel Data Plumbing Revolution
    • Excel Productivity
    • Excel-Friendly OLAP
    • Visualization
  • Training & Solutions
  • Downloads
Sign in
Welcome!Log into your account
Forgot your password?
Password recovery
Recover your password
Search
Sunday, September 21, 2025
  • Sign in / Join
Linkedin
Sign in
Welcome! Log into your account
Forgot your password? Get help
Password recovery
Recover your password
A password will be e-mailed to you.
Microsoft Excel User, Microsoft Excel Learning, Microsoft Excel Training, Microsoft Excel Lessons, Microsoft Excel Tips Microsoft Excel User, Microsoft Excel Learning, Microsoft Excel Training, Microsoft Excel Lessons, Microsoft Excel Tips
  • Blog
  • All Posts
  • Business & Economics
    • AllAccounting & FinanceAnalytical ChartingAnalytical MethodsBusiness StatisticsCash FlowData ManagementData VisualizationEconomic IndicatorsFinancial AnalysisForecasting & SimulationInflation & DeflationPublic Company DataReportingTests & ValidationsTime Value of Money
      Growing too fast can be dangerous to your company's health. Use the Sustainable Growth Rate ratio to track your company's financial ability to grow.
      Accounting & Finance

      How Fast Is Too Fast?

      Aggregation Functions

      How to Smooth Data by Using the TREND Function

      Two economists have introduced a new leading indicator, which predicts a recession soon. These Excel charts illustrate their insight. If they're correct, Excel users will be very busy in the months ahead.
      Charting Methods

      Consumer Sentiment Suggests a 2022 Recession

      Your data can contain many important, hidden patterns. But simple transformations in Excel can help to reveal them—as this example illustrates.
      Analytical Methods

      Simple Transformations Can Reveal Hidden Patterns in Your Data

  • Excel Methods
    • AllCharting MethodsConditional FormattingData ManagementError ReductionExcel DashboardsExcel TablesExcel’s Graphic ToolsPrintingReport TablesShortcutsVBAWorksheet Interaction
      Aggregation Functions

      How to Smooth Data by Using the TREND Function

      Two economists have introduced a new leading indicator, which predicts a recession soon. These Excel charts illustrate their insight. If they're correct, Excel users will be very busy in the months ahead.
      Charting Methods

      Consumer Sentiment Suggests a 2022 Recession

      Your data can contain many important, hidden patterns. But simple transformations in Excel can help to reveal them—as this example illustrates.
      Analytical Methods

      Simple Transformations Can Reveal Hidden Patterns in Your Data

      A shortage of truckers is one cause of the supply chain crisis in the US. This Excel chart suggests that the problem won't end soon.
      Blog

      An Excel Chart of a Major U.S. Supply Chain Problem

  • Formulas & Functions
    • AllAggregation FunctionsArray FormulasCounting FunctionsDate-Time FunctionsDates and TimesDynamic Array FormulasFinancial FunctionsFunctions ExplainedLogical FunctionsLookup Formulas and FunctionsMath FunctionsRange NamesRounding FunctionsStatistical FunctionsText Functions
      Aggregation Functions

      How to Smooth Data by Using the TREND Function

      As inflation rises, so do mortgage interest rates—causing house prices to fall. Here's how Excel's PV function can help you estimate what you new house price will be.
      Blog

      Here’s How Inflation Could Affect the Value of Your Home

      Aggregation Functions

      How to Smooth Monthly Trends with Centered Moving Averages

      To reduce errors in reports, you should foot and cross-foot them. But Excel's floating-point arithmetic gets in the way. Here's how to fix the problem with a standard deviation calculation.
      Error Reduction

      How to Foot and Cross-Foot Excel Reports in a Floating-Point World

  • Excel Strategies
    • AllAnalytical MethodsExcel Data Plumbing RevolutionExcel ProductivityExcel-Friendly OLAPVisualization
      Excel Flowbook Revolution
      Excel Data Plumbing Revolution

      Getting Radical with Excel

      Aggregation Functions

      How to Smooth Data by Using the TREND Function

      Two economists have introduced a new leading indicator, which predicts a recession soon. These Excel charts illustrate their insight. If they're correct, Excel users will be very busy in the months ahead.
      Charting Methods

      Consumer Sentiment Suggests a 2022 Recession

      Your data can contain many important, hidden patterns. But simple transformations in Excel can help to reveal them—as this example illustrates.
      Analytical Methods

      Simple Transformations Can Reveal Hidden Patterns in Your Data

  • Training & Solutions
    • Use this unique Excel dashboard to track the general rate of inflation, your personal rate, and the rate of the goods and services you buy.
      Business & Economics

      Inflation Tracker Excel Dashboard with Consumer Prices

      Update this Excel dashboard with 15 key US mortgage interest rates every business day, with one command. Each chart shows 71 days of rates.
      Training & Solutions

      Mortgage Rates Excel Dashboard

      Use this Excel dashboard to track 27 economic indicators of the United States' recovery from the Covid-19 recession.
      Training & Solutions

      Learn How to Use Excel to Track the US Recovery from…

      This Excel dashboard report lets you follow key economic trends while showing you how to gain a HUGE increase in your Excel productivity at work.
      Training & Solutions

      Track Key Economic Indicators Every Weekday with this Excel Dashboard

  • Downloads
Linkedin
Microsoft Excel User, Microsoft Excel Learning, Microsoft Excel Training, Microsoft Excel Lessons, Microsoft Excel Tips ExcelUser.com
Home Excel Methods Excel Tables How to Add Advanced Filter Capabilities to Excel Tables
  • Excel Methods
  • Excel Tables

How to Add Advanced Filter Capabilities to Excel Tables

Excel Tables offer the ability to filter on two criteria in one column. Here one way to search for many criteria in a Table.

By
Charley Kyd
-
10641
Facebook
Twitter
Pinterest
Linkedin

    Excel Tables offer the ability to filter on two criteria in one column. Here one way to search for many criteria in a Table.One useful feature of Excel Tables is the ability to filter any number of columns. The filter control for each column allows us to search for two criteria. However, when I use these filters I often have at least two problems with them.

    First, when I explore a lot of data by using many filters in several different columns, I find myself doing a LOT more clicking than I really want to do.

    Second, I occasionally need to filter on more than two criteria in a column, a feature that Tables don’t offer.

    So recently, I finally got tired of all that clicking; and I got tired of the two-filter limit. So I decided to search for a better way.

    And I found it.

    Add a Filter Column to Your Excel Tables

    The idea is simple: To reduce all the clicking when we explore Table data, it would be much easier if we could rely on one column of formulas that returns TRUE if the row has the data we’re looking for, and FALSE otherwise.

    But what should that column of formulas look like?

    Before I show you one approach, let’s take a quick look at the column of data that I rely on the most in the data I’ve been using. (More precisely, the column contains “metadata”, which typically is defined as “data about data.”)

    The Tags column contains category labels that describe the contents of each row of economic data. I separated each tag with a “|” so I can search for a complete tag when I want. (I didn’t use commas as a separator because some of the tags have embedded commas, as you can see in the second row here:

    |usa|nsa|monthly|bls|rate|unemployment|msa|mt|missoula|
    |usa|nsa|monthly|bls|rate|unemployment|county|mt|gallatin county, mt|
    |usa|monthly|sa|bls|rate|unemployment|state|mt|
    |usa|sa|quarterly|bea|unemployment|state|transfers|frb district|benefits|frb stl district|

    Although these tags describe economic data from the Federal Reserve Bank of St. Louis, I  suggest that you keep a similar approach in mind when you create Excel Tables of your own business data. You could add a column of tags to General Ledger data, product data, inventory data, and so on. If you do, you’ll probably find it a lot easier to find just the items you need when you report and analyze the data in your Tables.

    Using the Single-Criteria Search Formula

    Here’s the first formula I created. It’s a long formula, which I’ll wrap to six lines so you can read it more easily:

    =AND(
    ISERR(SEARCH(“|state|”,[@Tags]))-1,
    ISERR(SEARCH(“|msa|”,[@Tags]))-0,
    ISERR(SEARCH(“county”,[@Tags]))-0,
    ISERR(SEARCH(“|frb district|”,[@Tags]))-0
    )

    As you can see, this formula consists of four individual searches, surrounded by an AND function. Here’s what it does…

    The AND function returns TRUE if each of its arguments has a non-zero value. (In your spreadsheet, FALSE has a zero value and TRUE has a value of 1.) But if any argument returns a zero value, AND returns FALSE. Specifically, in the formula above, AND returns TRUE if a tag DOES contain “|state|”, and does NOT contain “|msa|”, and does NOT contain “county”, and does NOT contain “|frb district|”.

    If you’ve not used Table formulas before, the “[@Tags]” reference will look strange to you. Microsoft calls this a “structured reference.”  In formulas, you reference data in Table columns by using the name of the column within brackets. The “@” character tells Excel to use the value in the Tags column that’s on the same row as the row that the formula is on.

    How the Single Criteria Search Formula Works

    To see how the four SEARCH arguments work, take a look at the first SEARCH above.

    If the SEARCH function  finds “|state|” in its row within the Tags column, the ISERR() function returns FALSE, which has a numeric value of zero. So we turn this FALSE value to TRUE by subtracting the value of 1. (Remember, Excel treats zeros as FALSE, and all other values as TRUE. So the -1 value in this case still evaluates as TRUE.)

    On the other hand, if the SEARCH function does NOT find “|state|”, ISERR returns TRUE, which has a numeric value of 1. But when we subtract 1, we turn this value to zero, which Excel treats as FALSE.

    Now look at the second SEARCH line. If the SEARCH function finds “|msa|” in its row within the Tags column, the ISERR function returns FALSE. This FALSE value stays FALSE because we subtracted zero, which doesn’t change the value at all. I could have skipped that “-0″ piece entirely; but I added it for two reasons.

    First, by adding “-1″ or “-0″ to each SEARCH function in the formula, I make it very easy to see where I need to modify the logic when I want to. So, for example, if I want to change the formula to select for “county” tags, I merely change “-0″ to “-1″.

    Second, honestly, I get a little confused by the many changes between TRUE and FALSE, particularly after I’ve been away from the Table for a while. So the “-1″ piece tells me YES, the formula is looking for “|state|”. And the “-0″ pieces tell me that NO, the formula does not want the other three items.

    Final Notes about the Single-Criteria Search Formula

    Each test in the filter formula above looks at data in the same column. However, each of the four SEARCH functions could just as well be looking for different information in different columns within the Table. In fact, if you use the Multi-Criteria Search Formula that I’ll describe next, you’ll use this single-criteria formula primarily for testing multiple columns of data.

    Also, remember that this formula is like any other Excel formula, even though it uses a new method to reference data within the Table. Therefore, rather that hard-coding “|state|”, “|msa|”, and so on, I could have put those text items in cells above the Table. That way, I could change the filter criteria merely by changing values in cells.

    Also, of course, I could replace “-1″ and “-0″ with something like “-$B$1″ and “-$B$2″, where cells B1 and B2 could contain 1 or 0, or TRUE or FALSE. That would have let me change the logic of what to include or exclude merely by switching between TRUE and FALSE, and then refreshing the Table by pressing Alt+F5.

    Finally, I’ll conclude this post by telling you what I don’t like about this formula…

    All four sections of the formula above are looking at the same cell. So you would think we could find a way to use one SEARCH function to search one cell using each item in a list, and then return summary information about the results it finds.

    • TAGS
    • AND Function
    • Excel Tables
    • Filtering
    • ISERR Function
    • Metadata
    • SEARCH Function
    Facebook
    Twitter
    Pinterest
    Linkedin
      Previous articleThe Excel-Friendly Database Strategy
      Next articleIntroducing Excel-Friendly Databases
      Charley Kyd
      Charley Kyd
      Early in my career, I worked nearly 20 years as the CFO of turnarounds and startups. But I eventually got burned out fighting continual struggles with cash flow. That's when I started to write about Lotus 1-2-3, the spreadsheet software that I'd been using most of the time during the CFO days. When Excel was about to be introduced for the PC, one of my magazine editors set up a meeting for me to see the product, talk with the developers, and write a cover story about Excel. So I used the first version of Excel before it was launched. And I had also used the first version of VisiCalc before it was launched. And then,

      RELATED ARTICLESMORE FROM AUTHOR

      In Excel Tables, you can filter on any two conditions in a column. But by using the SUMPRODUCT function, you can filter on any number of items in a list.
      Data Management

      How to Use SUMPRODUCT in an Excel Table to Filter Any Number of Items

      Although Excel provides two worksheet functions that ignore filtered rows in a Table, nearly any function can ignore those hidden rows if you use this new trick.
      Excel Methods

      Use a ‘Visible’ Column in Formulas to Ignore Hidden Rows in Filtered Tables

      Here are the only two ways I know to set up formulas that look up data in an Excel Table, using more than one criteria.
      Excel Methods

      Two Ways to Set Up Multi-Criteria Lookup Formulas in Excel

      Excel Methods

      How to Use Advanced Filters to Create Unique List of Items from an Excel Table

      Do you need to update your Excel reports with daily, weekly, or monthly data? Here's a low-maintenance way to do it, using one type of Excel database.
      Data Management

      How to Report Periodic Data from Excel Databases

      Here's how a few Excel formulas can move data between Excel's most widely used table designs to transfer data from source files into a more usable form.
      Excel Tables

      How to Read and Update Excel Tables Using SUMIFS and INDEX-MATCH

      All Categories

      Latest Articles

      Excel Flowbook Revolution

      Getting Radical with Excel

      Excel Data Plumbing Revolution Charley Kyd - January 5, 2024 0
      It's time to think about Excel in a radical new way—when we use it to work with business or economic data. It's time, in fact,...
      Growing too fast can be dangerous to your company's health. Use the Sustainable Growth Rate ratio to track your company's financial ability to grow.

      How Fast Is Too Fast?

      Accounting & Finance Charley Kyd - July 26, 2022 0
      (Originally published in Inc Magazine.) What typically tops the list of worries of the chief executive officers of fast growing companies? Financing that growth, according...

      How to Smooth Data by Using the TREND Function

      Aggregation Functions Charley Kyd - January 17, 2022 0
      Years ago, I read that Prof. William S. Cleveland had suggested that data could be smoothed by calculating a centered trendline through adjacent data—a...
      Advertisement
      ExcelUser.com, for business users of Microsoft Excel
      ABOUT US
      ExcelUser, Inc. Copyright © 2004 - 2020 by Charles W. Kyd, all rights reserved. Content, graphics, and HTML code are protected by US and International Copyright Laws, and may not be copied, reprinted, published, translated, hosted, or otherwise distributed by any means without explicit permission.
      FOLLOW US
      Linkedin
      • Contact
      • Terms of Use
      • Privacy Policy
      • Disclaimer
      • Earnings Policy
      • Reprints and Reposts
      © ExcelUser, Inc. Copyright © 2004 - 2020 by Charles W. Kyd, all rights reserved.
      MORE STORIES
      Do you need to update your Excel reports with daily, weekly, or monthly data? Here's a low-maintenance way to do it, using one type of Excel database.

      How to Report Periodic Data from Excel Databases

      February 17, 2020
      Here are the only two ways I know to set up formulas that look up data in an Excel Table, using more than one criteria.

      Two Ways to Set Up Multi-Criteria Lookup Formulas in Excel

      February 17, 2020

      How to Use Advanced Filters to Create Unique List of Items...

      February 17, 2020