How to Convert Excel to a Text File with Pipe Delimiter (2 Ways)

The dataset below contains 4 columns. The first column displays the full names of individuals. The following three columns have divided these names into First Name, Middle Name, and Last Name.

convert excel to text file with pipe delimiter


Method 1 – Using the Control Panel to Convert an Excel File to a Pipe Delimited Text File

Steps:

  • Go to the computer Settings.

convert excel to text file with pipe delimiter Using Control Panel Region

  • Choose Time & Language.

convert excel to text file with pipe delimiter Using Control Panel Region

  • Choose Date, time, & regional formatting or Region.

  • Choose Region.

convert excel to text file with pipe delimiter by list separator

  • A dialog box will pop up. Choose Additional settings.

  • A dialog box will pop up. Enter the SHIFT+BACKSLASH (Shift+\) key in the List separator box. It will change the separator from comma (,) to pipe (|).

  • Open the Excel file and go to File.

convert excel to text file with pipe delimiter by list separator

  • Click Save as.

  • Select the file type as CSV(comma delimited) and Save the file.

convert excel to text file with pipe delimiter by list separator

  • Right-click on the file Convert to pipe text, then go to Open with > Notepad.

  • Here’s the file.

  • Press CTRL+S to save the file.

Method 2 – Find and Replace to Convert an Excel File to a Text File with Pipe Delimiter

Steps:

  • Convert the file to CSV (comma delimited). You can use Method 1.

convert excel to text file with pipe delimiter

  • Open the file with Notepad.

convert excel to text file with pipe delimiter by find and replace

  • Click Edit and go to Replace.

  • Replace a Comma (,) with Pipe (|) and click Replace all.

convert excel to text file with pipe delimiter by find and replace

  • Save the file by pressing CTRL+S.

Read More: Convert Excel to Text File with Delimiter


Things to Remember

  • You can convert one Excel sheet at a time. For converting multiple sheets, repeat the process.
  • Due to an extra line at the bottom of the file, you might not be able to load it. Click on the first blank line at the end of the file and backspace until your cursor is at the end of the last line containing data when you open the file.

Practice Section

We’ve attached a practice workbook where you may practice these methods.


Download the Practice Workbook

Get FREE Advanced Excel Exercises with Solutions!
Mahbubur Rahman
Mahbubur Rahman

MAHBUBUR RAHMAN is a leather engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SPSS, STATA, Deep Neural Networks, and Machine Learning. Holding a B.Sc in Leather Engineering from Khulna University of Engineering & Technology, he's shifted to become a content developer. In this role, he crafts technical content centred around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo