FILTER and IMPORTRANGE for Google Sheets

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,240
I have this wonderful formula that filters an importrange for the value in A1. It looks for A1 in column D on the TASKLIST sheet. It works great!

Sometimes column D is left intentionally blank. I would like the filter to include the rows where column D is blank. I want it to look for A1 and blank. I think I need the OR function or the AND function, but I'm not very good at writing nested functions.

Here is my formula.

=FILTER(IMPORTRANGE(J$1, "TASKLIST!A5:H"),IMPORTRANGE(J$1, "TASKLIST!D5:D") =A1 )

Full disclosure: This formula is from a Google Sheets spreadsheet. I don't know if that makes a difference compared to Excel.

Any help will be greatly appreciated.

DJ
 
Last edited by a moderator:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
It has not been tried.
Excel Formula:
= QUERY ( IMPORTRANGE ( J1 , "TASKLIST!A5:H" ) , "SELECT * WHERE Col4='" & A1 & "' OR Col4=''" )
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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