Google Spreadsheet Query Function: Use real SQL on your spreadsheets


Just like this: =query(Yevmiye!$A$2:$I$1004;“select sum(H) WHERE D=’”&A11&“’ label sum(H) ”“) D is a column head. Ignore label statement. Sum(H) is the column which will be subject of query. The formula gives sometimes #N/A due to result of SQL query is null. To be able to overcome it just wrap your function with iferror(param1,param2) function. if… Read More Google Spreadsheet Query Function: Use real SQL on your spreadsheets

Google Spreadsheet Query Function Makes your Spreadsheets DB which SQL-ready


When you want to make complex queries over Excel sheet that is almost impossible. Yet by Google Docs Spreadsheet Query() function you  can write SQL and retrieve whatever you want. For instance: =query(A2:I1000;“select sum(H)  WHERE D=‘mrkt’”)  Gets only expenditures which about ‘mrkt’ (market) from A2:ı10000 TABLE then gets sum. When you write function by this way,… Read More Google Spreadsheet Query Function Makes your Spreadsheets DB which SQL-ready