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 with "sum" as header and result below it. What I want is just the result! How I remove header? Can I?
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 with "sum" as header and result below it. What I want is just the result! How I remove header? Can I?
 On
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                For queries using pivot, try using INDEX to remove headers from the pivoted columns.
=INDEX(QUERY('Class hours'!A2:C11,
             "select sum(C) 
              where A = '"&A5&"' 
              group by A 
              pivot B"), 2)
Got the answer from this thread: https://stackoverflow.com/a/63468791/5424088
 On
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                =QUERY(H4:L35;"select sum(L) where H='First Week'"; -1)
Just make a SUM of the QUERY result - like this:
=SUM(QUERY(H4:L35;"select L where H='First Week'"))
With this solution, you can also calculate with the cells and then add everything up.
=SUM(QUERY(H4:L35;"select L*(S-R) where H='First Week'"))
 On
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                See the format here.
Example:
=QUERY(B4:C38,
   "SELECT C, sum(B) where C!='' group by C label C 'Member', sum(B) 'Sum'"
)
Try this: