I\'m doing this query at my google spreadsheet:
=QUERY(H4:L35;\"select sum(L) where H=\'First Week\'\"; -1)
But it returns a little table w
=INDEX(QUERY(H4:L35;"select sum(L) where H='First Week'"; -1),2,1)
This just parses the returned array and selects the 2nd record returned in the first column.
You can also do this with the filter function which is less compute intensive.
=SUM(FILTER(L4:L35, H4:H35 = "First Week"))