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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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