ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Using The Two Powerful Tools Of MS Excel

Updated on October 22, 2011

Data analysis and summary creation is one of the most common task that MS Excel is used for in offices. Many departments work with raw data for which meaningful results are required, like sales data, students' mark sheets, budget-related information, survey results, inventory lists, customer data and other similar stuff.

There are two very powerful functions in Excel that can greatly speed up data summarisation for such common scenarios - Advanced Filters and Pivot Tables. These features are often thought to be complex and are not used as frequently as they should have been, resulting in manual formula-based work to achieve similar results, and that too after taking a lot of productive time with dependency on manual updates every time the base data changes. But in fact, these are simple enough techniques to get started with. Now lets take a look at Advanced Filters.

Advanced Filters

To apply Advanced Filters, let us work with a short sample data of customers who made some purchases at a store. The store generates a file of customer ID, name, age, location and purchase amount information and wants to apply some filters to segregate customers matching a given criteria. Most of us would recall the Data > Filter > Auto Filter command that provides dropdowns at sheet columns through which one can specify a search criteria.

But there is a limitation: at the most only a combination of two criteria can be defined using the Auto Filter dropdown's last item ‘Custom'. For example, it is not possible to apply a filter that would show customers with age > 20, and location = tokyo, and purchase amount > 500 as this query has three criteria to be applied on the data.

This is where Advanced Filters comes in. We will use a sample data in a sheet where top two rows would hold our criteria, while the actual data appears below it. When using your own data, you can insert rows above your data to hold search criteria, or place the criteria fields at any convenient location in the sheet.

Sample Excel sheet with required criteria and sample data is shown in Fig. 1.

Note that the column heading in row 1 are for filter criteria, while column names in row 4 are for the actual data. Select the cells comprising the actual data, that is, from A4 to E8 and go to Data > Filter > Advanced Filter menu. Advanced Filter dialogue box appears.

The Action section by default is set to filter the list in-place. Leave it as it is for now. See that our selected data range appears automatically in the List Range field. Next field, Criteria Range, is blank - and as you may have guessed, we will select our criteria fields in the top two rows here, column labels and criteria both, using the browse button (showing cell selection icon) at the right-hand side of this field. Make sure you select only those columns that contain filter criteria. These are age, location and purchases columns (from C1 to E2), that is, columns C, D and E.

Press OK. The data set now reduces to show only customers with ID 3 and 4 as these are the only customers that fulfil the entered criteria.

There a few nothings to note here. First, there is no very apparent visual indication that an Advanced Filter has been applied. Though the rows get hidden and row numbers would be missing, one may assume that those rows have been manually hidden or a user can overlook it completely.

Second, if criteria fields are changed in the top rows, the filtered data would not automatically update itself to reflect the changes. That is to say, it is not a dynamic functionality. User must explicitly go to Advanced Filter menu and press OK again to make changes take effect. This is why no data entry should be made in the actual data when there are filters applied to ensure consistency in subsequent formula usage.

To show all the data again, go to Tools > Data > Show All. Or, after changing the criteria, go directly to Advanced Filter and press OK for the new criteria to take effect. At this point, you may experiment with ‘Copy to another location' option in Action section. This would ensure the actual data remains displayed as it is. Selecting this option makes ‘Copy to filed' enabled. Select the target top-left cell and rest is taken care of by Excel itself as the filtered data is displayed on the right and to the down of selected cell.

The real strength of Advanced Filter lies with the range of filter criteria that can be defined. For instance, wildcards can be used for searching text. This means, T* would search all cities starting with T, and for names, H?ssam would search Hassam and Hessam both, since ? means a character. Tilde ~ character can be used before ‘?' or ‘~' or ‘*' to specify these wildcards themselves.

Multiple criteria for a single column can be searched by adding criteria vertically, say under City, adding Tokyo and Sydney in next two rows would mean City = Sydeny or Tokyo. Note that our initial criteria was an and condition, that is, to show results where all three conditions are met. This can be converted to or condition, to show results where any of the three conditions are met, by writing each criteria in a new row. Also, conditions can be defined in a set.

There is a lot that can be done in this way particularly when combined with functionalities such as named data ranges to ease data selection.


    0 of 8192 characters used
    Post Comment

    No comments yet.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)