# Google Sheets TOCOL Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/tocol-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The TOCOL function converts a range or array into a single column, simplifying data organization and analysis in Google Sheets.

```
TOCOL(array_or_range, [ignore], [scan_by_column])
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the TOCOL you need in plain EnglishGenerate Formula

## Parameters

**`array_or_range`**:\
The range of cells or array that you want to convert into a single column.

**`ignore`**:\
An optional parameter that specifies which values to ignore in the conversion. This can be a specific value or type of value (e.g., `FALSE` to ignore logical values).

**`scan_by_column`**:\
An optional parameter that determines the order of scanning the array. If set to `TRUE`, the array is scanned by column; if set to `FALSE` or omitted, it is scanned by row.

## What is the TOCOL Function?

The *TOCOL* function in Google Sheets is a useful tool that allows users to convert a two-dimensional array or range into a single column. This function is particularly helpful when you want to consolidate data from multiple rows and columns into a single list, making it easier to analyze or manipulate.

In simpler terms, TOCOL helps you take a table of data and transform it into a single column format, which can be beneficial for various data processing tasks.

## A Practical Example

Imagine you have a table of sales data for different products stored in a Google Sheets document:

### Sales Data Table:

| ProductID | ProductName | Quantity |
| - | - | - |
| 101 | Widget A | 10 |
| 102 | Widget B | 15 |
| 103 | Widget C | 5 |

You want to create a single column list of all the quantities sold for each product.

## TOCOL Formula

To achieve this, you would use the TOCOL function as follows:

```
=TOCOL(A2:C4)
```

In this formula:

- `A2:C4` is the range containing the sales data that you want to convert into a single column.

## Result of the Formula

When you apply the TOCOL formula to the Sales Data Table, the output would look like this:

| Sales Data |
| - |
| 101 |
| Widget A |
| 10 |
| 102 |
| Widget B |
| 15 |
| 103 |
| Widget C |
| 5 |

This single column now contains all the data from the original table, making it easier to work with.

## Why Use TOCOL?

TOCOL is beneficial because it simplifies the process of organizing data in Google Sheets. It allows users to quickly convert multi-dimensional data into a more manageable format. This can be particularly useful for data analysis, reporting, or when preparing data for other functions that require a single column input.

## Key Takeaways:

- **TOCOL**: A Google Sheets function that converts a two-dimensional array into a single column.
- **Data Consolidation**: Ideal for organizing and simplifying data for analysis or reporting.
- **Ease of Use**: Makes it easier to manipulate and work with data in a more straightforward format.
- **Common Use Cases**: Useful for data analysis, creating lists, and preparing data for further processing.

TOCOL is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data organization and analysis capabilities.

Happy spreadsheeting!

## Example use case

You have a sales data table with multiple columns for products sold in different regions. Use TOCOL to convert the data into a single column, making it easier to analyze total sales across all regions without manually rearranging the data.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Unprotect Google Sheets](https://betteranalyst.com/google-sheets/how-to-unprotect-google-sheets)
- [How To Wrap Text In Google Sheets](https://betteranalyst.com/google-sheets/how-to-wrap-text-in-google-sheets)
- [Google Sheets Conditional Formatting](https://betteranalyst.com/google-sheets/google-sheets-conditional-formatting)
- [How To Add A Column In Google Sheets](https://betteranalyst.com/google-sheets/how-to-add-a-column-in-google-sheets)
- [How To Alphabetize In Google Sheets](https://betteranalyst.com/google-sheets/how-to-alphabetize-in-google-sheets)
- [How To Autofit In Google Sheets](https://betteranalyst.com/google-sheets/how-to-autofit-in-google-sheets)
- [How To Calculate Percentage In Google Sheets](https://betteranalyst.com/google-sheets/how-to-calculate-percentage-in-google-sheets)
- [How To Combine Two Columns In Google Sheets](https://betteranalyst.com/google-sheets/how-to-combine-two-columns-in-google-sheets)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
