1

I'm trying to get a Query formula to filter rows that have a past date in column B. Here's the formula:

=QUERY(users!A2:BB,"SELECT B, C, D, G, AI WHERE AM < "&DEVS!A2&"",1)

AM contains the row's date, and DEVS!A2 contains Today's date using the TODAY() formula.

I get one result in the row I have the Query on, but it doesn't automatically reutrn the other results.

The scenario is recreated in this sample sheet:

https://docs.google.com/spreadsheets/d/1_GXWOHW1nKzjRDvAJGnq8cpD_ewZIvzCTSH2lxJ8VhA/edit?usp=sharing

Scott Craner
  • 148,073
  • 10
  • 49
  • 81
Hypha
  • 41
  • 1
  • 4

2 Answers2

0

I was able to get it to work by using:

=QUERY(users!A2:BB,"SELECT B, C, D, G, AI WHERE AM < now() ",1)
Hypha
  • 41
  • 1
  • 4
0

use:

=QUERY(A2:B, "select A where B < date '"&TEXT(G2, "e-m-d")&"'", )

enter image description here

player0
  • 124,011
  • 12
  • 67
  • 124