{"id":20613226,"url":"https://github.com/robiningelbrecht/google-spreadsheets-improved-query","last_synced_at":"2026-06-06T15:31:11.307Z","repository":{"id":239139637,"uuid":"798653336","full_name":"robiningelbrecht/google-spreadsheets-improved-query","owner":"robiningelbrecht","description":"Use column names in Google Spreadsheets QUERY()","archived":false,"fork":false,"pushed_at":"2024-05-10T08:20:07.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T03:47:34.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robiningelbrecht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-10T07:56:57.000Z","updated_at":"2024-05-10T08:20:11.000Z","dependencies_parsed_at":"2024-05-10T09:42:43.445Z","dependency_job_id":null,"html_url":"https://github.com/robiningelbrecht/google-spreadsheets-improved-query","commit_stats":null,"previous_names":["robiningelbrecht/google-spreadsheets-improved-query"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fgoogle-spreadsheets-improved-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fgoogle-spreadsheets-improved-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fgoogle-spreadsheets-improved-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fgoogle-spreadsheets-improved-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robiningelbrecht","download_url":"https://codeload.github.com/robiningelbrecht/google-spreadsheets-improved-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242261501,"owners_count":20098766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T11:09:10.298Z","updated_at":"2025-03-06T18:25:41.547Z","avatar_url":"https://github.com/robiningelbrecht.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google spreadsheets improved query\n\nUse column names in your Google Spreadsheets QUERY() functions. \nThis script is based on this [YouTube](https://www.youtube.com/watch?v=clq7WlC2whk) tutorial.\n\nScript ID: `1BZyZAV5h_cgqvMh0oU86PiKC_GK6yMPPk74eDmQjZ2Ijrhm-si3BwUxd`\n\n## Usage\n\n```\n=QUERY(A1:H, SELECT(\"SELECT SUM([amount]) WHERE [amount] \u003e 0 LABEL SUM([amount]) ''\", 'A1:Z1), 0) \n```\n\n`SELECT` expects 2 parameters:\n- Your query\n- Range of the column names (should be exactly one row)\n\n### Query placeholders\n\nEach column name (= placeholder) needs to be surrounded with `[ ]` and can be targeted \nwith the [camelCase](https://en.wikipedia.org/wiki/Camel_case) version of the names in the \"header row\":\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eColumn name\u003c/th\u003e\n    \u003cth\u003ecamelCase field\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eid\u003c/td\u003e\n    \u003ctd\u003e[id]\u003c/td\u003e\n  \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003ePurchased On\u003c/td\u003e\n    \u003ctd\u003e[purchasedOn]\u003c/td\u003e\n  \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003eAmount\u003c/td\u003e\n    \u003ctd\u003e[amount]\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Adding the library to your project\n\nThe 'SELECT` function is made available as a script library. Follow [these steps](https://developers.google.com/apps-script/guides/libraries#add_a_library_to_your_script_project) to add it to your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fgoogle-spreadsheets-improved-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobiningelbrecht%2Fgoogle-spreadsheets-improved-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fgoogle-spreadsheets-improved-query/lists"}