I'm importing a Google Calendar (ics link in A2 that I'm importing with an IMPORTDATA function) and it has system dates related to 1970 that I obviously want to filter.

How can I specify to show me everything EXCEPT cells containing DTSTART:1970*

=FILTER(index(IMPORTDATA(A2),,1), index(IMPORTDATA(A2),,1)<>"DTSTART:19700308T020000", index(IMPORTDATA(A2),,1)<>"DTSTART:19700405T030000", index(IMPORTDATA(A2),,1)<>"DTSTART:19701004T020000", index(IMPORTDATA(A2),,1)<>"DTSTART:19701101T020000")

1 Answer 1


Try this:

=query( importdata(A2), "select Col1 where not Col1 contains 'DTSTART:1970' ", 0 )

See the query language help page.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.