Filter out words using the Filter Function with Table References

Excel2021

New Member
Joined
Mar 26, 2021
Messages
46
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am using the filter function to pull data from a table in excel using table references. I need to filter out any row containing 2 specific words in a specific column. I am having difficulty doing this with table references as all the examples online show this done with cell ranges not table references/ranges. I have attached an image with my filtered results/formula in Cell I4 as I am unable to add the workbook. I would like to filter out any row in the "Customer Name" column with the words "Lemon" or "Pear".
 

Attachments

  • Filter Example.PNG
    Filter Example.PNG
    84.1 KB · Views: 18

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Can you post your existing formula.
Also is this in addition to your existing criteria.
 
Upvote 0
Give this a try:

Book1
ABCDEFGHIJKLM
1
2
3
4Customer NameNo Date/Past Due/OKCurrent MonthGL AccountAmountCustomer NameNo Date/Past Due/OKCurrent MonthGL AccountAmount
5Apple CoOKTRUE200035000Apple CoPast DueFALSE300035000
6Orange CoOKTRUE2000100Orange CoPast DueFALSE3000100
7Lemon CoOKTRUE2000500Apple LLCPast DueFALSE30001500
8Pear CoOKTRUE20007000Orange LLCPast DueFALSE30002000
9Apple LLCOKTRUE20001500
10Orange LLCOKTRUE20002000
11Lemon LLCOKTRUE20002500
12Pear LLCOKTRUE20003000
13Apple CoPast DueFALSE300035000
14Orange CoPast DueFALSE3000100
15Lemon CoPast DueFALSE3000500
16Pear CoPast DueFALSE30001000
17Apple LLCPast DueFALSE30001500
18Orange LLCPast DueFALSE30002000
19Lemon LLCPast DueFALSE30002500
20Pear LLCPast DueFALSE30005000
Sheet1
Cell Formulas
RangeFormula
I5:M8I5=FILTER(Table1[#All],(Table1[[#All],[GL Account]]=3000)*(Table1[[#All],[No Date/Past Due/OK]]="Past Due")*(Table1[[#All],[Current Month]]=FALSE)*(ISNUMBER(SEARCH("Lemon",Table1[[#All],[Customer Name]]))=FALSE)*(ISNUMBER(SEARCH("Pear",Table1[[#All],[Customer Name]]))=FALSE))
Dynamic array formulas.
 
Upvote 0
I also suggest you update your profile as you clearly can't be using 2019.
 
Upvote 0
Another option is
Excel Formula:
=FILTER(Table1,(Table1[GL Account]=3000)*(Table1[No Date/Past Due/OK]="Past Due")*(Table1[Current Month]=FALSE)*(ISERR(SEARCH("Lemon",Table1[Customer Name])))*(ISERR(SEARCH("Pear",Table1[Customer Name]))))
 
Upvote 1
Can you post your existing formula.
Also is this in addition to your existing criteria.

=FILTER(Table1[#Data],(Table1[[#Data],[GL Account]]=3000)*(Table1[[#Data],[No Date/Past Due/OK]]="Past Due")*(Table1[[#Data],[Current Month (T/F)]]=FALSE),"")

Yes, I need the existing criteria as well please.
 
Upvote 0
Give this a try:

Book1
ABCDEFGHIJKLM
1
2
3
4Customer NameNo Date/Past Due/OKCurrent MonthGL AccountAmountCustomer NameNo Date/Past Due/OKCurrent MonthGL AccountAmount
5Apple CoOKTRUE200035000Apple CoPast DueFALSE300035000
6Orange CoOKTRUE2000100Orange CoPast DueFALSE3000100
7Lemon CoOKTRUE2000500Apple LLCPast DueFALSE30001500
8Pear CoOKTRUE20007000Orange LLCPast DueFALSE30002000
9Apple LLCOKTRUE20001500
10Orange LLCOKTRUE20002000
11Lemon LLCOKTRUE20002500
12Pear LLCOKTRUE20003000
13Apple CoPast DueFALSE300035000
14Orange CoPast DueFALSE3000100
15Lemon CoPast DueFALSE3000500
16Pear CoPast DueFALSE30001000
17Apple LLCPast DueFALSE30001500
18Orange LLCPast DueFALSE30002000
19Lemon LLCPast DueFALSE30002500
20Pear LLCPast DueFALSE30005000
Sheet1
Cell Formulas
RangeFormula
I5:M8I5=FILTER(Table1[#All],(Table1[[#All],[GL Account]]=3000)*(Table1[[#All],[No Date/Past Due/OK]]="Past Due")*(Table1[[#All],[Current Month]]=FALSE)*(ISNUMBER(SEARCH("Lemon",Table1[[#All],[Customer Name]]))=FALSE)*(ISNUMBER(SEARCH("Pear",Table1[[#All],[Customer Name]]))=FALSE))
Dynamic array formulas.
I didn't have any luck with this. Did you mean to change the table from Data to All? All would include the headers I believe.
 
Upvote 0
I didn't have any luck with this. Did you mean to change the table from Data to All? All would include the headers I believe.
I did not mean to change anything. I don't usually use tables, so that is what Excel populated when I selected the columns.

Try this then, or Fluff's suggestion.

Excel Formula:
=FILTER(Table1,(Table1[GL Account]=3000)*(Table1[No Date/Past Due/OK]="Past Due")*(Table1[Current Month]=FALSE)*(ISNUMBER(SEARCH("Lemon",Table1[Customer Name]))=FALSE)*(ISNUMBER(SEARCH("Pear",Table1[Customer Name]))=FALSE))
 
Upvote 0
You're headers are slightly different, try
Excel Formula:
=FILTER(Table1,(Table1[GL Account]=3000)*(Table1[No Date/Past Due/OK]="Past Due")*(Table1[Current Month (T/F)]=FALSE)*(ISERR(SEARCH("Lemon",Table1[Customer Name])))*(ISERR(SEARCH("Pear",Table1[Customer Name]))))
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,080
Members
453,021
Latest member
Justyna P

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