Text file into excel sheet

Mrchnexcel

New Member
Joined
May 29, 2018
Messages
1
I have a requirement like,
2018 - Folder,
Inside - 201801 to 201812
Inside - 201801 I may have 0 to n number of .txt files.
I have copy the txt file data into excel sheet.
like that upto 201812

Example :

Inside 201801 I have 3 txt files then my output will be three sheets under single excel for that particular folder.

The txt file should be delimited by comma.

After successfully copied the txt file data into excel sheets. all txt files present in that folder should be auto delete.

And also a log file should generate with summary of processing details like,

Year Month of Year Number of txt files Number of excel sheets Excel sheet name Number of delete txt files.
2018 201801 10 10 XXXXX.xlsx 10
2018 201802 05 05 YYYYY.xlsx 05

so on.....
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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