Convert multiple .txt files into an excel sheet

skyblue87

New Member
Joined
Apr 19, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, complete amateur with no experience of VBA and with no internal IT resource!

I receive a number of statements in txt format from a broker daily with various cash and stock balances and I would like the ability to convert en masse into a spreadsheet. I cant use power query as the files arent all structured the same way as they contacin different columns from each other.

Therefore is there a way I can a) take the files from the email (they are sent with the same title and yesterdays date) and b) convert them all into one workbook?

Thanks

M
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Do the text files have the same columns but in a different order or is the order correct but the column headings different?

Do I assume correctly that you want the text files to be put into the same worksheet?

If they can have different columns, in terms of the data contained within the columns, then putting them into the same worksheet does not make sense.
 
Upvote 0
they have different columns in different order. I dont want them in the same sheet, but rather the same book, and then can manipulate the data from there.
 
Upvote 0

Forum statistics

Threads
1,213,495
Messages
6,113,992
Members
448,538
Latest member
alex78

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