Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to make a query with Google Spreadsheet, that checks for a date within a certain range. I have tried using:

    =QUERY('Noah''s Weight'!A:D, "select * where A > date ' " &text(TODAY()-15;"yyyy-MM-dd" ) &" ' ")

Row 1 is the headers, column A is the time stamp of from the form, and column 2 has the accompanying values I'm looking for.

share|improve this question

You can use =QUERY(A:B, "select * WHERE datediff(now(), todate(A)) <= 15")

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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