Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

his box allows you to filter and sort the table, in this case, on the Customer variable. Excel now has a FILTER function that can

his box allows you to filter and sort the table, in this case, on the Customer variable.
Excel now has a FILTER function that can be utilized to create dynamic tables that builds upon this filtering functionality. By learning how to use FILTER, you can greatly decrease the time it takes to find exactly the data you need. Let's see how it works.
Consider this instruction: "Excel, go over to my data table and get me just the sales data for Stark Industries where the company sold to Aubrey Carver. I need to know the total number of transactions and the total sales for that combination." Sounds like something very useful in a business context, right? We can achieve this using the FILTER function and our data validation dropdowns in J1 and J2.
FILTER works almost exactly like the instruction above. You tell FILTER where to look to find the data (array), direct it to a column(s) and tell it what to filter on in those columns (include), and finally what to report if the filter returns nothing (if empty). The syntax looks like this:
=FILTER(array, include, [if_empty])
For example, =FILTER(Table1,(Table1[Company]="Stark Industries"),"No Results") is asking:
"Excel, go to Table1, and then to the Company column. Next, find all the entries for Stark Industries and give me just those observations. If you don't find anything, just return No Results."
If you want to filter on more than one column, you can use the multiplication * symbol to have more than one include parameter in FILTER. For example:
=FILTER(Table1,(Table1[Company]="Stark Industries")*(Table1[Customer]="Carver, Aubrey"),"No Results")
This is the equivalent of an AND statement. "Give me all observations where the company is Stark Industries AND the customer is Carver, Aubrey combined."
However, remember the data validation dropdowns you created in J1 and J2? This is where the magic happens. Instead typing in the company and customer manually, we can have the FILTER function reference J1 and J2 instead. The FILTER function will then respond to changes in those dropdowns creating a dynamic table.
In cell I7, construct a FILTER function that references Table1 and will return data that has been filtered on the two data validation dropdown cells in J1 and J2. Have the function return "No Results" if no data is returned.
In cell J3, create a simple SUM function that will add up all the sales returned in column K.
In cell J4, create a simple COUNT function that will tally the number of records returned. Hint: Use column K for this also.
Using the data validation dropdown cells, return all data where Nakatomi Corp sold to Hughes, Jody.
How many records were returned? (Enter zero for No Results.)
No Results
What was the total sales returned? (Enter zero for No Results.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions