Google Sheets – How to VLOOKUP in a QUERY

google sheetsgoogle-sheets-queryvlookup

I Have this sheet with raw data, basically names, dates, amounts of money and if they paid or not (this is the most important). What I am trying to do is to have in another sheet the same table but showing the rows of the people who hasn't paid (filter by a "NO" in "paid" column), and if in the Raw data sheet the value in Paid is changed from NO to YES that row disappears in the "Filtered" sheet.

I am trying to make a VLOOKUP in a query but with no success, any help?

Example Sheet.

Best Answer

Please try:

=query(Data!A1:D7,"select * where B ='NO' ")