2021年2月2日星期二

how to sum last x rows from a column? Google sheets

I need to sum values in column H for the last 52 rows with a formula. Rows will be added regularly.

in col C I have an incremental date value but this is not working. H1500 is random number, how can I get last row?

=query(A3:H1500,"select sum(H) where H is not null and c is not null order by C DESC Limit 52",-1)  
https://stackoverflow.com/questions/66020261/how-to-sum-last-x-rows-from-a-column-google-sheets February 03, 2021 at 10:05AM

没有评论:

发表评论