Convert .txt to csv

Harini1100

New Member
Joined
Mar 5, 2024
Messages
21
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
Hello Guys,

I'm working for US Healthcare industry, i received the .txt file from insurance company and I want to convert it into csv file. The file is looks like

20240218~HL*65*3*PT~NM1*QC*1*BAST*LILOAN****MI*YHZ7123456~TRN*2*I242583~STC*A1:20*20240227*WQ*225~REF*D9*NA~DTP*472*RD8*20240218-

Kindly help how to do it with in excel.

Thanks,
Subbu
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Bring your data in with Power Query (Data - From Text/csv)
once its loaded and looks correct, then save as CSV
 
Upvote 0
I done that , but the problem is all the data comes in single cell, I want it different columns
 
Upvote 0
you will need to go thru and set your delimiters. In PQ , right click on you column then choose split by delimiter, then define them as needed.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top