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.
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.
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.
Imagine you have a table of sales data for different products stored in a Google Sheets document:
| 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.
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.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.
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.