Site icon libreofficehelp.com

Split Content of Cell into Multiple Columns in LibreOffice Calc

There are many ways you can split cell content into multiple columns in a LibreOffice Calc sheet. Here are some of them.

For heavy spreadsheet users, it is often required to split cell contents into multiple columns for data analysis and refining purposes. And it is one of the basic operations you need to learn for a long-term understanding of spreadsheets. Data always comes incorrectly formatted and requires clean-up for further processing. Here’s how you can split cell contents via three methods.

Split Cell Content

Method 1 – Text to Columns

Source Data
Text to Columns in Menu
text to column option in LibreOffice tabbed bar (ribbon)

In the next window, Select Separated By as a Comma and Press OK. You can also see the LIVE preview of your data after the split at the bottom of the dialog.

Text to Columns Window
After Split Cell Content using Text to Columns

Usage Notes while using Text to Columns

Fixed width Text to columns

Method 2 – via LEFT, RIGHT Function

Using the combination of LEFT, RIGHT, and FIND function, you can also split the cell content. For example, if your data is separated by a comma, then find out the position of the comma in the string then extract the sections.

The FIND function returns the position of the comma.

The LEFT function extracts the left section of the name from position 1 to the before comma’s position. For cell B2, the FIND returns 4.

=LEFT(B2,FIND(",",B2)-1)

Getting the second part of the string is tricky. You have to calculate the length of the section from the comma’s position until the end. To do that, you can subtract the comma’s position from the length of the entire string. You can use the RIGHT function.

=RIGHT(B2,LEN(B2)-FIND(",",B2))
Using RIGHT and LEFT function

Method 3 – via Substring MID Function

Using the MID function also, you can achieve the same result. Here’s the syntax of the MID function.

MID (target string, start position, length) : returns the string of length from start position

As per the above example, the following formula extracts the first part of the string.

=MID(B3,1,FIND(",",B3)-1)

The below formula extract the second part of the string.

=MID(B3,FIND(",",B3)+1,LEN(B3)-FIND(",",B3))
Using MID function

Closing Notes

I hope these methods help you to split the cell content into multiple sheets for your use case. In case if it’s not working, drop a comment below.

Exit mobile version