0

I have a spread sheet with a list of names for which there are a specified date ranges. What I'm trying to achieve is to get the name of the person whose date range falls within the current week.

data source

So far I've come up with this query but it does not return the correct name. What it actually does is just return the first 2 names without any regard to the where clause conditions.

=QUERY(A2:C;"SELECT A WHERE B >= "&TODAY()&" AND C <= "&TODAY()+6&" LIMIT 0";2)

result with just first 2 rows

I can't figure out what could be the problem here.

1 Answer 1

1

try:

=QUERY(A2:C; 
 "select A 
  where B >= date '"&TEXT(TODAY();   "e-m-d")&"' 
    and C <= date '"&TEXT(TODAY()+6; "e-m-d")&"'"; 0)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.