6.6 C
London
Tuesday, March 11, 2025
HomeSoftware TutorialsGoogle SheetsGoogle Sheets Query: How to Select Multiple Columns

Google Sheets Query: How to Select Multiple Columns

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following syntax to select multiple columns using the Google Sheets query function:

=query(Range,select A, B, C, 1)

This particular query selects columns A, B, and C in a dataset and the 1 specifies that there is 1 header row at the top of the dataset.

The following examples show how to use this function in practice with the following dataset:

Example 1: Select Multiple Columns

We can use the following syntax to select all rows from the Player and Team columns:

Google sheets query select multiple columns

Example 2: Select Multiple Columns Based on Condition

We can also select multiple columns based on some condition.

For example, we can use the following syntax to select the Player and Team columns where the Team is equal to Mavericks.

Example 3: Select All Columns

We can use the following syntax to select all of the columns in the dataset:


You can find more Google Sheets tutorials on this page.

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories