Google SpreadSheet Query: Can I remove column header?

前端 未结 6 1990
执笔经年
执笔经年 2020-12-12 18:35

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

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 19:05

    =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"))
    

提交回复
热议问题