Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Filtering data is a quick and easy way to create a subset of data in a range of cells or in a table column. Filtered data displays only the rows that meet criteria that you specify and hides rows that you do not want to display. You can also filter by more than one column. Filters are additive. Each additional filter that you apply works only the subset of data produced by the current filter, and therefore further reduces the subset of data. Thus, you might first filter on data from the year 2008, and then on data from France. The resulting information would contain only data that applied to France in 2008.

You can filter by a list of values or by criteria.

What do you want to do?

Filter text

  1. Locate a column that contains alphanumeric data.

  2. Click the arrow Filter drop-down arrowin the column header.

  3. Do one of the following:

    Select from a list of text values    

    1. Click Filter.

    2. In the list of text values, select or clear one or more text values to filter by.

      The list of text values can be up to 1,000 items. If the list is large, clear (Select All) at the top, and then select the specific text values to filter by.

      Create criteria    

    3. Point to Text Filters and then click one of the comparison operator commands, or click Custom Filter.

      For example, to filter by text that begins with a specific character, select Begins With, or to filter by text that has specific characters anywhere in the text, select Contains.

    4. In the Custom Filter dialog box, in the box on the right, enter text.

      For example, to filter by text that begins with the letter "J", enter J, or to filter by text that has "bell" anywhere in the text, enter bell.

      If you need to find text that shares some characters but not others, use a wildcard character.

      The following table describes the wildcard characters that you can use as comparison criteria for text filters.

Use

To find

? (question mark)

Any single character
For example, sm?th finds "smith" and "smyth"

* (asterisk)

Any number of characters
For example, *east finds "Northeast" and "Southeast"

~ (tilde) followed by ?, *, or ~

A question mark, asterisk, or tilde
For example, fy06~? finds "fy06?"

Top of Page

Filter numbers

  1. Locate a column that contains numeric data.

  2. Click the arrow Filter drop-down arrowin the column header.

  3. Do one of the following:

    Select from a list of numbers    

    1. Click Filter.

    2. In the list of numbers, select or clear one or more numbers to filter by.

      The list of numbers can be up to 1,000 items. If the list is large, clear (Select All) at the top, and then select the specific numbers to filter by.

      Create criteria    

    3. Point to Number Filters and then click one of the comparison operator commands or click Custom Filter.

      For example, to filter by a lower and upper number limit, select Between.

    4. In the Custom AutoFilter dialog box, in the box or boxes on the right, enter a number or numbers.

      For example, to filter by a lower number of "25" and an upper number of "50", enter 25 and 50.

Top of Page

Filter dates or times

  1. Locate a column that contains dates or times.

  2. Click the arrow Filter drop-down arrowin the column header.

  3. Do one of the following:

    Select from a list of dates or times    

    1. Click Filter.

    2. In the list of dates or times, select or clear one or more dates or times to filter by.

      By default, the filter process groups all of the dates in the range in a hierarchy of years, months, and days. When you select or clear a level in the hierarchy, the filter automatically selects or clears all of the dates that are nested below that level. For example, if you select “2006”, the Web viewer shows months below “2006”, and then lists the days below the name of each month.

      The list of values can be up to 1,000 items. If the list of values is large, clear (Select All) at the top, and then select the values to filter by.

      Create criteria    

    3. Point to Date Filters and then do one of the following:

      Common filter    

      A common filter is one based on a comparison operator. To use a common filter, follow this procedure:

      1. Click one of the comparison operator commands (Equals, Before, After, or Between) or click Custom Filter.

      2. In the Custom Filter dialog box, in the box on the right, enter a date or time.

        For example, to filter by a lower and upper date or time, select Between.

      3. In the Custom Filter dialog box, in the box or boxes on the right, enter a date or time.

        For example, to filter by an earlier date of "3/1/2006" and a later date of "6/1/2006", enter 3/1/2006 and 6/1/2006.

        Dynamic filter    

        A dynamic filter is one where the criteria can change when you reapply the filter. To use a dynamic filter, click one of the predefined date commands.

        For example, on the All Dates in the Period menu, to filter all dates by the current date, select Today, or to filter all dates by the following month, select Next Month.

        Notes: .

        • The commands under the All Dates in the Period menu, such as January or Quarter 2, filter by the period no matter what the year is. This can be useful, for example, to compare sales by a period across several years.

        • The filter options This Year and Year to Date handle future dates in a different way. This Year can return dates in the future for the current year, whereas Year to Date returns only dates up to and including the current date.

Top of Page

Filter for top or bottom numbers

  1. Locate a column that contains numeric data.

  2. Click the arrow Filter drop-down arrowin the column header.

  3. Point to Number Filters and then select Top 10.

  4. In the Top 10 Filter dialog box, do the following.

    1. In the box on the left, click Top or Bottom. The filter determines the top and bottom values based on the original range of cells. It does not use the filtered subset of data.

    2. In the box in the middle, enter a number from 1 to 255 for Items or 0.00 to 100.00 for Percent.

    3. In the box on the right, do one of the following:

      • To filter by number, click Items.

      • To filter by percentage, click Percent.

Top of Page

Clear a filter for a column

  • To clear the filter for a column, click the Filter button Applied filter iconon the column heading, and then click Clear Filter from <Name>.

Top of Page

Learn about possible issues with filtering data

The following are issues that you should be aware of that either limit filtering or prevent filtering.

Avoid mixing storage formats    For best results, the workbook author should not mix formats, such as text and number or number and date, in the same column because only one type of filter command is available for each column. If there is a mix of formats, the filter dialog box displays the format that occurs most frequently. For example, if the column contains three values stored as number and four as text, the filter process displays Text Filters.

There may be more filtered rows than the limit of the maximum number of rows displayed     If the number of rows that match the filter exceeds the maximum number of rows displayed in the workbook, and then the Web-based viewer displays the first set of filtered rows up to the current maximum number. To see all of the filtered rows, you may need to page to the next scrolling region. If the workbook is in an Excel Web Access Web Part, it might be possible to increase the number of rows that the Web Part displays.

Nonprinting characters can prevent filtering    The Web-based viewer cannot filter data in a column that contains characters with an ANSI value of 0 to 32, which are nonprinting characters. In an Excel workbook, these characters display a rectangular box as a placeholder character. To filter data, the workbook author must remove these nonprinting characters or replace them with a printing character.

Calculated members in PivotTable reports     You cannot apply a filter that combines a calculated member (indicated by a blue color) with any other item, including other calculated members. To use a filter with a calculated member, make sure that you select only one calculated member. If you are selecting two or more items, remove any calculated members.

PivotTable metadata may be visible     If you are a workbook author and you publish a workbook containing an OLAP PivotTable report with filtering applied, it's possible for a user to see the metadata of a hidden field. If you want to keep this information confidential, do not enable filtering.

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×