• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

How to limit columns in a filtered result set in Microsoft Excel

0 Comments

When using Microsoft Excel‘s Advanced Filter feature, you have the ability to display records that match specific criteria. Additionally, you can control the number of columns returned by this feature.

While it’s easy to filter records in Excel and view entire records that meet the specified criteria, you might be interested in limiting the columns in the filtered result set. Unfortunately, this cannot be achieved through a simple Excel filter, as it filters the source data in place.

However, by utilizing the advanced filter functionality, you can filter both the records and the columns. In the following steps, I’ll demonstrate how to use Excel’s Advanced Filter feature to obtain a filtered set based on two criteria columns, and then how to restrict the filtered set to only those two columns.

Please note that I’m using Microsoft 365 desktop on a Windows 10 64-bit system, but these steps can be applied to earlier versions as well.

Understanding Microsoft Excel’s Advanced Filter

The Advanced Filter feature in Excel does not rely on a dropdown list of filtering options and values. Instead, you enter criteria at the sheet level, and the feature either filters the source data or copies a filtered set to another location.

This feature involves three components:

  1. Source data: The data you wish to filter.
  2. Criteria: The values that should match the source data.

Location: Determines whether to filter in place or copy the filtered results to another location.

With the advanced filter in Excel, you can express criteria across multiple columns. While the simple Filter feature allows you to do this, it requires expressing the criteria one column at a time. Conversely, an advanced filter enables you to express criteria for all columns in the dataset simultaneously. Moreover, you can use more complex criteria with the advanced filter.

Let’s proceed with an example to demonstrate how to apply an advanced filter to obtain all columns in a filtered result set.

How to Use Advanced Filter in Excel

Let’s consider a quick example using a table named “Commission,” as shown in Figure A. Suppose you want to view all the records for employees whose names start with “M” and whose corresponding commission is less than $250. Additionally, you want to copy the filtered results to another location rather than filtering the source data directly.

Figure A:filtered result 1

[Image: Susan Harkins/TechRepublic. We’ll use an advanced filter on this data set.]

Assuming you already have the source data, let’s set up the criteria and location:

  1. Copy the header row to another sheet, creating two copies, as illustrated in Figure B. Although this step can be performed on the same sheet, using another sheet makes it easier.
  2. In cell D3 (Personnel column), enter the criteria string “M*.”

In cell F3 (Commission column), enter the criteria string “<=250.” Since both criteria expressions are in the same row, Excel treats them as an “AND” operation. The filter will return any record where the Personnel value starts with “M” and the Commission value is less than or equal to 250. To perform an “OR” operation, place one of the criteria expressions in the next row.

Figure B:filtered result 2

  1. [Image: Susan Harkins/TechRepublic. Prepare the criteria and location ranges.]

Once the criteria are set and both headers are in place, let’s run the Advanced Filter feature:

  1. Click on the sheet tab that contains the criteria and location headers (Figure B). In the example file, this sheet is named “Results.” The active sheet must be the location sheet.
  2. Go to the Data tab and click on “Advanced” in the Sort & Filter group.
  3. In the resulting dialog, identify the source data, criteria, and location for the result

Figure C:

How to limit columns in a filtered result set in Microsoft Excel

How to limit columns in a filtered result set in Microsoft Excel

[Image: Susan Harkins/TechRepublic. The advanced filter settings.]

If you’re wondering why there is no filtered result set, don’t worry, nothing went wrong. Upon careful review of the source data, you’ll notice that there isn’t a record that meets the specified criteria!

Let’s make a slight change to the criteria and observe the outcome. Modify the equality operator in cell F3 from “<=” to “>=” and run the filter again. Excel will display a warning that the destination range is not large enough. Click “Yes” to proceed, as there is sufficient space for the result set. As shown in Figure D, you’ll see that there are four records that meet the revised criteria.

Figure D:

How to limit columns in a filtered result set in Microsoft Excel

How to limit columns in a filtered result set in Microsoft Excel

[Image: Susan Harkins/TechRepublic. Four records meet the criteria expressions in C3 and E3.]

As you can see, this feature requires some initial preparation, but it’s straightforward to execute and produces impressive results. However, the resulting set still displays the full record. Now, let’s proceed to limit the columns.

How to limit the columns using Excel’s Advanced Filter

Restricting the columns returned by an advanced filter is a simple process. Just modify the header cells to correspond to the columns you wish to view. Figure E illustrates a new header row in N2:O2.

Figure E:

How to limit columns in a filtered result set in Microsoft Excel

How to limit columns in a filtered result set in Microsoft Excel

[Image: Susan Harkins/TechRepublic. To reduce the columns, reduce the header cells.]

Perform the advanced filter as before, but this time specify N2:O2 as the “Copy to” range (Figure E). The result set, as shown in Figure F, will contain four rows and only two columns. By adjusting the header cells, you can limit the number of columns copied to the result set.

Figure F:

How to limit columns in a filtered result set in Microsoft Excel

How to limit columns in a filtered result set in Microsoft Excel

[Image: Susan Harkins/TechRepublic. The “Copy to” range reduces the number of returned columns to two.]

Copying only the desired columns to a filtered result set is not the same as applying a filter, but it allows you to work exclusively with the data you need.

Rate this post
23
250 Views
How to Prevent Duplicate Values in a Column Using Excel Data ValidationPrevHow to Prevent Duplicate Values in a Column Using Excel Data ValidationMay 23, 2023
A convenient method to delete or remove blank rows in ExcelMay 24, 2023A convenient method to delete or remove blank rows in ExcelNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • Avast Premium Security 2021 10 Devices 2 Years Global Avast Premium Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $41.00
  • Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year
    Rated 5.00 out of 5
    $201.00
  • Buy Windows 11 Professional MS Products CD Key Buy Windows 11 Professional MS Products CD Key
    Rated 5.00 out of 5
    $6.00
Products
  • SQL Server 2014 Standard SQL Server 2014 Standard $20.00
  • Project Standard 2021 Microsoft Project Standard 2021 - 1 PC $13.00
  • Microsoft Office Home And Business 2016 For Mac Key Global Bind Microsoft Account Microsoft Office Home And Business 2016 For Mac Key Global Bind Microsoft Account
    Rated 4.92 out of 5
    $15.00
  • Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 4.72 out of 5
    $20.00
  • Windows 10 Enterprise LTSC 2019 Key Global Windows 10 Enterprise LTSC 2019 Key Global
    Rated 4.83 out of 5
    $9.00
  • Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year $284.73
  • Avast SecureLine VPN 2021 2 Years 5 Devices Global Avast SecureLine VPN 2021 2 Years 5 Devices Global
    Rated 5.00 out of 5
    $47.00
  • microsoft office home and business 2019 pcmac key Microsoft Office Home And Business 2019 (MAC) key bind to your Microsoft account
    Rated 4.95 out of 5
    $30.00
  • Windows 10 Home Key Global Windows 10 Home Key Global
    Rated 4.81 out of 5
    $10.00
  • Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.