Table of Contents
Google Sheets Query is a powerful tool that allows users to manipulate and analyze data in their spreadsheets. One useful function of Query is the ability to insert blank columns in the output. This can be done by using the “SELECT” statement and specifying the desired number of blank columns to be inserted. This feature can be particularly helpful when organizing and formatting data in a specific way for better analysis or presentation. By utilizing this function, users can easily customize their output to suit their needs and improve their overall data management experience.
Google Sheets Query: Insert Blank Columns in Output
You can use the following syntax in a Google Sheets query to insert a blank column in the output of the query:
=QUERY(A1:C12, "SELECT A, ' ', B LABEL ' ' ''")
This particular query will select column A from the range A1:C12, then insert a blank column, then select column B from the range A1:C12.
Note: The LABEL clause tells the query to use an empty header for the new blank column.
The following example shows how to use this syntax in practice.
Example: Insert Blank Column in Google Sheets Query
Suppose we have the following dataset that contains information about various basketball players:

We can use the following formula to select column A from the range A1:C12, then insert an empty column, then select column B from the range A1:C12.
=QUERY(A1:C12, "SELECT A, ' ', B LABEL ' ' ''")The following screenshot shows how to use this query in practice:

The query returns the values from column A in the original dataset, then an empty column, then the values from column B.
If you’d like to insert multiple blank columns, you can use the following syntax:
=QUERY(A1:C12, "SELECT A, ' ', ' ', B LABEL ' ' '', ' ' ''")
The following screenshot shows how to use this query in practice:

Also note that we had to use the LABEL clause to specify two empty labels for the two new blank columns.
Cite this article
stats writer (2024). How can I use Google Sheets Query to insert blank columns in the output?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-query-to-insert-blank-columns-in-the-output/
stats writer. "How can I use Google Sheets Query to insert blank columns in the output?." PSYCHOLOGICAL SCALES, 26 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-query-to-insert-blank-columns-in-the-output/.
stats writer. "How can I use Google Sheets Query to insert blank columns in the output?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-query-to-insert-blank-columns-in-the-output/.
stats writer (2024) 'How can I use Google Sheets Query to insert blank columns in the output?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-query-to-insert-blank-columns-in-the-output/.
[1] stats writer, "How can I use Google Sheets Query to insert blank columns in the output?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use Google Sheets Query to insert blank columns in the output?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
