Filter formula - return only certain rows from table

uajeremy

New Member
Joined
Oct 19, 2017
Messages
1
Basically, I have a table with about 30-40 columns. I'd like to create a filter with criteria but only return a few rows of the full source table.

here is an example

PRODUCTEASTWESTSOUTHNORTHTOTAL
a
67​
61​
76​
21​
225​
b
23​
10​
43​
88​
164​
c
86​
96​
99​
34​
315​
d
56​
74​
23​
67​
220​
e
35​
90​
8​
49​
182​
f
93​
2​
5​
76​
176​
g
74​
6​
91​
98​
269​
h
10​
72​
4​
31​
117​
i
36​
76​
45​
70​
227​

Current formula returns the entire table
=FILTER(Table1,Table1[TOTAL]>200)

Can the Table1 argument specify to only return specific columns?

This didn't work but hopefully explains my question.
=FILTER(Table1[PRODUCT]&Table1[TOTAL],Table1[TOTAL]>200)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
The formula in A13 here shows what happens when function FILTER is used on the whole Table. But you only want two specific fields to be reported and some records to be filtered based on a condition.

There are three ways that I have discovered. The first is to use function FILTER twice in adjacent columns (see A17 and B17). The second uses function CHOOSE to do the work (see A21), which is based on this MrExcel vid. The tird is a FILTER of a FILTER (see A25)

Notice that I have different numbers because the numbers you presented paste as text and I just couldn't figure out how to covert them - I even tried PowerQuery, but to no avail!

Book1
ABCDEF
1PRODUCTEASTWESTSOUTHNORTHTOTAL
2a242772173216
3b2792012168551
4c206108166144296
5d19023628533
6e237288173162284
7f1961399117546
8g24243256143200
9h23923411268130
10i581674988253
11
12
13c206108166144296
14e237288173162284
15i581674988253
16
17c296
18e284
19i253
20
21c296
22e284
23i253
24
25c296
26e284
27i253
Sheet65
Cell Formulas
RangeFormula
A13A13=FILTER(Table8,Table8[TOTAL]>200)
A17A17=FILTER(Table8[PRODUCT],Table8[TOTAL]>200)
B17B17=FILTER(Table8[TOTAL],Table8[TOTAL]>200)
A21A21=CHOOSE({1,2},FILTER(Table8[PRODUCT],Table8[TOTAL]>200),FILTER(Table8[TOTAL],Table8[TOTAL]>200))
A25A25=FILTER(FILTER(Table8,(Table8[#Headers]=Table8[[#Headers],[PRODUCT]])+(Table8[#Headers]=Table8[[#Headers],[TOTAL]])),Table8[TOTAL]>200)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,886
Messages
6,122,093
Members
449,064
Latest member
Danger_SF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top