Note: My question is similar Googe Spreadsheets' ImportRange function.
Is it possible in Google Spreadsheets or Microsoft Excel to import data based on cell values?
For example, can I copy contents of Sheet1 to another sheet where column B == "foo"?
Target (Sheet1):
The destination sheet should only copy Row 2 and 4 since those are the only ones containing "foo"
Edit:
For Google Docs, I am looking to something like this:
=ImportRange("spreadsheetkey", QUERY('sheetname'!A6:E10, "SELECT A, B = 'foo'"))
however I can't get it to work.