Google-sheets – Google Spreadsheet sum when filtering google sheets I have spreadsheet that looks like this: Now when I filter on a company I want the total to display the sum of the whole of B column. Since I am very new to spreadsheets I was hoping someone could help me on how I would do that? Best Answer Use SUBTOTAL =SUBTOTAL(9, B2:B20) Related SolutionsGoogle Sheets – How to Do Sum(Max(…)) Perhaps you can use the following formula. Formula =QUERY(DATA!C1:F7, "SELECT C, MAX(E), MAX(F) GROUP BY C PIVOT D") Screenshot Remark In order to get the summation, I simply added a summation for the consecutive columns (see example). Example I've created an example file for you: SUM and MAX in PIVOT TABLE Google-sheets – Filter by the sum of two cells Use the following formula to accomplish that. I used the following dataset: Take notice of the extra ID I added. Formula =QUERY(DATA!B1:F4, "SELECT F, D WHERE B+E>=20 AND C=2500") Explained The two WHERE clauses will set the criteria: Column C to 2500 The result of the summation of column B + E to be larger or equal than 20 Column F and D are there to categorise the result. Result Example I've created an example file for you: Filter by the sum of two cells in Google Spreadsheet Related TopicGoogle-sheets – How to collect the sum of different columns while filteringGoogle-sheets – Filter Google Spreadsheet Array FormulaGoogle Sheets – Sum Based on Month and Name ColumnsGoogle Sheets – Sum Values for Each MonthGoogle Sheets – Using SUMIF or IF When Sum Is More Than ZeroGoogle-sheets – Move existing SUM downward when IMPORTRANGE expandsGoogle Sheets – How to Query Dataset While Calculating Cumulative Values
Best Answer
Use
SUBTOTAL