Google Sheets TOCOL Function: Syntax, Examples & Tips

The TOCOL function converts a range or array into a single column, simplifying data organization and analysis in Google Sheets.
Google Sheets
TOCOL(array_or_range, [ignore], [scan_by_column])

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

On this page
  1. Parameters
  2. What is the TOCOL Function?
  3. A Practical Example
  4. TOCOL Formula
  5. Result of the Formula
  6. Why Use TOCOL?
  7. Key Takeaways:
  8. Example use case

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:

ProductIDProductNameQuantity
101Widget A10
102Widget B15
103Widget C5

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:

Google Sheets
=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.

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.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

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