How to Convert Excel Data into a Single Column with the TOCOL Function

Excel TOCOL function – To arrange Excel data from a table into a single column, you would typically use common Excel copy-and-paste keyboard shortcuts. However, the TOCOL function lets you easily arrange Excel data in a single column.

Learn how to use the Excel TOCOL function to convert data into a single column.


What Is the Excel TOCOL Function?


When using Excel at work, you may need to convert multiple values into a single column. In that case, we usually use Excel keyboard shortcuts. For that reason, you may not be familiar with the TOCOL function.

Let’s look at the function for converting multiple Excel columns into a single column.


Syntax


The Excel TOCOL function syntax is as follows.

=TOCOL(ARRAY,[ignore],[scan_by_column])

  1. ARRAY: Enter the data range.
  2. Ignore: When arranging data in a single column, choose whether to include zeros or blank cells.
  3. Scan_by_column: Choose whether to scan the data by row or by column.


Excel TOCOL Function Examples


Let’s look at several examples of using the TOCOL function to arrange data in a single column.

First, there is table-formatted data in columns B through E, as shown below.

An example of using the Excel TOCOL function, showing the basic function syntax.



TOCOL Function Example (Column Direction)


Use absolute references to lock the range of data you want.

Data arranged in a single column using the TOCOL function.


Use the following formula to arrange the data in the specified range into a single column.


G3 cell =TOCOL($B$3:$E$5,0,1)

Excel data from two or more columns arranged into one column.



TOCOL Function Example (Row Direction)


Use the following formula to retrieve the Excel data in row order.


G3 cell =TOCOL($B$3:$E$5,0,0)

Data from multiple columns arranged into one column in row order.



TOCOL Function Example (Blank Cells or Zero Values)


If the data you want to arrange in a single column contains blank cells or zero values, use the following formula to arrange only the values you want.

Learn how to exclude blank cells and zero values when arranging data in a single column.


G3 cell =TOCOL($B$3:$E$5,1,1)

Only cells with values arranged in a single column in Excel.


Conclusion

Converting Excel data is the first step in obtaining the values you need. There are many ways to arrange Excel data, but you should be able to choose the appropriate method based on the amount of data.

Leave a Reply

Your email address will not be published. Required fields are marked *