[Fixed!] Excel Text to Columns Is Deleting Data

We have concatenated string values in a cell and will use Text to Columns to store this information in different columns. We’ll explain why Text to Column is deleting data in Excel.

Dataset for Excel Text to Columns Is Deleting Data


Reason 1 – Having Hidden Columns in Excel

We will show how the Text to Columns feature separates the data.

  • Select the cells where you want to separate the data. We selected the cell range C5:C9.
  • Go to the Data tab from the ribbon.
  • Select Text to Columns.

Having Hidden Columns in Excel

Text to Columns Delete data for Having Hidden Columns in Excel

  • The Convert Text to Columns Wizard – Step 2 of 3 will appear.
  • Select the Delimiters. Here, we selected Comma and Space because both of these are used in the data.
  • Check the Treat consecutive delimiters as one option.
  • Select Next.

Convert Text to Columns Dialog box for Deleting Data in Excel.

  • The Convert Text to Columns Wizard – Step 3 of 3 will appear.
  • Select the Column data format you want. We selected General.
  • Press Finish.

  • In the following image, you can see that we lost data after that first one. The possible reason behind this can be hidden columns.
  • This means we did get the separated information, but the columns are hidden here.


Solution – Unhide Hidden Columns to Get the Lost Data

  • Place your mouse cursor on the hidden column.

Unhide Hidden Columns to Get Lost Data

  • Right-click there.
  • Select Unhide.

Unhiding Columns to Solve Excel Text to Columns Deleting Data

  • You will see that one of the hidden columns is showing and you have got your data.

  • Unhide the other columns in the same way until you get your data.

  • Give the columns titles as you want.

Read More: How to Undo Text to Columns in Excel


Reason 2 – Considering Line Break as Space

Here, the data is separated by a space. We will represent this data in 4 different columns in Excel with the Text to Columns feature.

Considering Line Break as Space

We used the Text to Columns feature. But, in the following image, you can see the final output. You can see that Text to Columns is deleting data after the first 2 columns in Excel. The reason behind this is that the second word has a line break, but not a space.

Considering Line Break as Space as A Result Text to Columns is Deleting Data in Excel

Let’s see how you can check that.

  • Click on the cell where the data is stored.
  • After the first two words, there is a line break. But, we did not select line break in the Delimiters.

Read More: Excel Text to Columns Not Working


Solution – Set the Line Break as Delimiter

  • Select the cells where you want to use Text to Columns.
  • Go to the Data tab.
  • Select Text to Columns.

Set Line Break as Delimiter

  • The Convert Text to Columns Wizard – Step 1 of 3 will appear.
  • Select Delimited.
  • Select Next.

  • The Convert Text to Columns Wizard – Step 2 of 3 will appear.
  • Select Space as Delimiters.
  • Check Others and press Ctrl + J to get the line break character.
  • Check the Treat consecutive delimiters as one option.
  • Select Next.

Set Line Break as Delimiter to Sove Excel Text to Columns Deleting Data

  • The Convert Text to Columns Wizard – Step 3 of 3 will appear.
  • Select the Column data format you want. We selected General.
  • Press Finish.

  • You will see that you have got all the data in different columns.

  • Give the Column Titles as you want and you will get your desired dataset.

Read More: How to Convert Column to Text with Delimiter in Excel


Download the Practice Workbook


Related Articles


<< Go Back to Splitting TextSplit in ExcelLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo