- SpreadJS Overview
- Getting Started
- JavaScript Frameworks
- Best Practices
- Features
- SpreadJS Designer
-
SpreadJS Designer Component
- Getting Started
- Quick Start
- Theme
- Designer Interface
- JavaScript Frameworks
- Customizations
-
Work in Designer Component
- AutoSum Functions
- Set Range Template Cell
- Name Box
- Select Cells Using Go To
- Find and Replace
- Edit Font Size
- Edit Font Family
- Manage Conditional Formatting Rules
- Shape Selection Pane
- Automatic Outline
- Format Painter
- Table Slicer
- TableSheet
- GanttSheet Designer
- ReportSheet Designer
- Data Chart Designer
- Text to Columns
- Remove Duplicates
- Pivot Table
- Dockable Side Panel
- Command Palette
- Transform Cells with LAMBDA Formula
- Toolbar Ribbon
- API Documentation
- SpreadJS Collaboration Server
- Touch Support
- Formula Reference
- Import and Export Reference
- Frequently Used Events
- API Documentation
- Release Notes
Text to Columns
Text to Columns is used to convert simple text or sentences having multiple words into separate columns. It enables us to get the tabular structure of data using a suitable delimiter or column width option.
SpreadJS Designer provides the Text to Columns ribbon button in the "Data Tools" group of the "Data" tab.
Steps to Convert Text to Columns
Using Delimiters
This method splits the text using the present delimiter in a cell or range. You can define your delimiter as well. Only one character is considered a delimiter.
Follow the steps below to convert the sample text "a,b,c,d" using the comma delimiter.
Select a cell or rows of cells where you would convert the text into columns.
1.png
Click on the "Data" tab to select the "Text to Columns" ribbon button from the "Data Tools" group.
2.png
The "Convert Text to Columns Wizard" window opens up.
Select the Delimited option from the "Original data type" section as shown in the below image.
3.png
Click on Next to open the "Convert Text to Columns Wizard- Step 2 of 3" window.
Select the delimiter from the pre-defined list of delimiters or you can enter your delimiter by specifying the desired character in the "Other" option.
4.png
The delimiter in the "" or '' will be ignored.
Check "Treat consecutive delimiters as one" option to allow if multiple characters ";;;;" are specified, they will be treated as one ";" only.
Click on Next to open the "Convert Text to Columns wizard-Step 3 of 3" window. Now, set the Data format for each column.
You can select the destination for the text. The default destination is the original cell.
5.png
Click on Finish to convert the text of the cell into columns.
6.png
Using Fixed Widths
This method splits the text using a fixed width between the text. You can set column breaks to separate the text into columns.
Select a cell or rows of cells where you want to convert the text into columns.
7.png
Click on the "Data" tab to select the "Text to Columns" ribbon button from the "Data Tools" group.
2.png
"Convert Text to Columns wizard- Step 1 of 3" window opens. Select Fixed width option from the "Original data type" section as shown below image.
9.png
Click on Next to open the "Convert Text to Columns Wizard- Step 2 of 3" window.
Create fixed-width column breaks using the instructions mentioned on the window.
10.png
Click on Next to open the "Convert Text to Columns wizard-Step 3 of 3" window.
Set the Data format for each column.
You can select the destination for the text. The default destination is the original cell.
11.png
Click on Finish to convert the text of the cell into columns.
12.png
Invalid Selections
If the selected cell or range of cells has no data, the following warning message appears.
13.png
If multiple ranges of cells or columns are selected, the following warning message appears.
14.png
If the destination column already includes data, the following warning message appears.
15.png