Friday, August 30, 2013

Google Spreadsheet Query Group By

Question:

( by Tnite )


In column B i have dates in format  in column D i have values.

what i want to do is sum each date seperately (so that i have a total of hours on 1/1/06 and then 1/2/06 and so on and so on without doing this manually- any formula suggestions greatly appreciated. 


Solution:

Have a look at the following screenshot:



And I have the following formula in Cell F1:
=query(A:D;"select B,sum(D) where B is not null group by B label B 'Date', sum(D) 'Total' ")

So now you have a single formula solution, and when you will update the data in range A:D, the data will auto update on columns F and G.


I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.


I also take up private and confidential projects:
If this blog post was helpful to you, and if you think you want to help me too and make my this blog survive then please donate here: http://igoogledrive.blogspot.com/2012/09/donate.html 

Thanks,

No comments:

Post a Comment