Flag This Hub

Filter Excel Data to Another Sheet

By


No Macros Required

You can automatically copy Excel data from one sheet to another, without using a macro.For example, you might have a long list of orders, and want to copy one salesperson's orders to a different sheet. Or, you could automatically select your largest orders, and copy those.

In this Hub you'll see how you can use Excel's Advanced Filter feature to select the data that you want, and that data will appear on the other sheet when you click the OK button.


Excel's Advanced Filter

Excel's Advanced Filter
See all 5 photos
Excel's Advanced Filter

How the Workbook Is Set Up

In this example, the workbook has two sheets.

  • The first sheet is named Orders, and it contains a list of recent orders from customers.
  • The second sheet is named Top Orders, and you'll use an Excel Advanced Filter to copy the highest valued orders to that sheet.


On the Orders sheet, a criteria range is in cells F1:F2.

  • Cell F1 has the heading Total, which exactly matches the heading for the total column in the main list.
  • Cell F2 contains the criteria for the Total column: >1500


    This will filter the list for order totals that are greater than $1500.





List of Customer Orders

List of Customer Orders
List of Customer Orders

The Top Order Sheet

On the Top Order sheet, two headings, Date and Customer, have been entered. Those are the only columns that we'd like to see from the original list.

Headings on the Top Order Sheet

Headings on the Top Order Sheet
Headings on the Top Order Sheet

Filter the List

When you want to send data to a different sheet, by using an Advanced Filter, you have to start from the sheet where the data will end up.

  1. Select the Top Orders sheet. That's where we want the data to be copied.
  2. On the Top Orders sheet, select an empty cell that's away from any of the other data on the sheet. In this example we'll select cell C4.
  3. From the Data menu, choose Filter, Advanced Filter. (Note: If you are using Excel 2007, click the Data tab on the Ribbon, then click Advanced Filter.)

  4. Choose Copy to another location.

  5. Click in the List Range box

  6. Select the Orders sheet, and select the entire list.

  7. Click in the Criteria range box.

  8. On the Orders sheet, select the criteria range (F1:F2)

  9. Click in the Copy to box.

  10. Select cells A1:B1 on the Top Orders sheet.

  11. Click OK

The Advanced Filter Dialog Box

The Advanced Filter Dialog Box
The Advanced Filter Dialog Box

The Data Is Copied to the Top Orders Sheet

When you click the OK button in the Advanced Filter dialog box, the orders that meets the criteria are copied to the Top Orders sheet.

There are 3 orders in the main list that are greater than $1500, and those are the dates and customers that appear on the Top Orders sheet.

The Advanced Filter Results

The Advanced Filter Results
The Advanced Filter Results

Advanced Filter Criteria

This example has a simple criteria range (F1:F2), with one heading and one rule (greater than $1500).

You can create much more complex Advanced Filter criteria ranges when you need to filter out different kinds of data from a list in Excel. For example, you could specify just one customer, or a specific date range for the filtered data.

See How Advanced Filter Works In a Short Video Tutorial

Contextures Blog -- Excel & Office Tips

  • Your Excel Spreadsheet Smells

    Do your spreadsheets smell? This week, a tweet from Felienne Hermans caught my eye. "Our @icse2012 paper on spreadsheet smells already has a citation before publication" Spreadsheet smells?... - 23 hours ago

  • Excel Pivot Table Selection Quick Tip

    To format a pivot table, you can select a specific section, such as one of the fields, or a grand total. When you point to a field heading, a black arrow will appear, if the Enable Selection setting... - 2 days ago

  • Show Data From Hidden Rows in Excel Chart

    You can add a chart in Excel, based on worksheet data, like this sales chart example. But, if you filter the data, and rows are hidden, that data also disappears from the chart. You might like that... - 7 days ago

More of My Excel Hubs

  • Organize Data in an Excel 2007 Table

    In Excel 2007, the formatted Excel Table feature makes it easier for you to sort and filter your data, and to scroll through thousands of rows. An Excel Table expands when you add new data, so it can be used as the source for a Pivot Table, and new data will automatically when you update the pivot table. - 2 years ago

  • How to Fix Blank Cells Before Sorting in Excel

    Blank cells could be putting your Excel data at risk! Some Excel worksheets have cells that were left blank, to make the headings and subheadings easier to read. For example, in the screen shot... - 2 years ago

  • Holiday Dinner Planner in Excel

    In Excel Dinner Planner, select a time to eat dinner, and enter the menu items. Excel will create a timetable, to help you stay organized, and have dinner ready on time. - 2 years ago

Comments

Taleb80 8 months ago

Thanks for sharing.

It is "Useful", so I voted.

ddalgleish 8 months ago

Thanks! Glad you found it helpful.

Jen 7 months ago

How do you link currencies in a workbook salesheet to another sheet with a different currency without any references to linking of data?

Chig 5 months ago

Thanks ddalgleish~!This saved my lots of time.

Chris 3 months ago

Great tutorial!

If I want to continually add data to the 'orders' Sheet, how can I get excel to automatically rerun the code to update the Top orders sheet?

Thanks!

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working