justlearning4
New Member
- Joined
- Nov 17, 2022
- Messages
- 25
- Office Version
- 365
- Platform
- Windows
I have searched through the existing threads that pertain to things like this and so far, I have not been able to find a solution. I have this text file (see number 2 below) that I need to get specific data from and load it into excel; the first line of each data chunk is the part that I am looking for specifically. Ideally, I would like to then space this data out into separate columns based on the "space" delimiter that is between each word/number/date/character. Additionally, I would like this to be repeatable since this is a project that will occur on a weekly basis.
For reference, this is what I would like the first lines of each data chunk to look like once it's brought into excel.
2. For reference, here is a sample of how the txt file will look once it is loaded into excel. The code that I am looking for would then take the data from the sheet that the txt file loads into and converts it into the format I laid out above:
For reference, this is what I would like the first lines of each data chunk to look like once it's brought into excel.
CITY AND COUNTY OF REGION, MEXICO | 11/06 | 1,000,000.00 | Aaa3/AA-/AA-/NR |
New Caldwell State | 11/04 | 1,000,000.00 | Aaa/AAA/AAA/NR |
2. For reference, here is a sample of how the txt file will look once it is loaded into excel. The code that I am looking for would then take the data from the sheet that the txt file loads into and converts it into the format I laid out above:
Book3 | ||||
---|---|---|---|---|
A | B | |||
1 | Column1 | |||
2 | CITY AND COUNTY OF REGION, MEXICO 11/06 1,000,000.00 Aa3/AA-/AA-/NR | |||
3 | FOR AND ON BEHALF OF ITS DEPARTMENT OF AVIATION | |||
4 | AIRPORT SYSTEM REVENUE BONDS | |||
5 | SERIES 2022C (FIXED RATE NON-AMT) | |||
6 | SERIES 2022D (FIXED RATE AMT) | |||
7 | SERIES 2022E (TERM RATE NON-AMT) | |||
8 | MGR: Barclays Capital Inc., New York | |||
9 | ||||
10 | ||||
11 | New Caldwell State 11/04 1,000,000.000 Aaa/AAA/AAA/NR | |||
12 | Environmental Facilities Corporation | |||
13 | State Revolving Funds Revenue Bonds, Series 2022 B | |||
14 | (2010 Master Financing Program) (Green Bonds) | |||
15 | MGR: Jefferies LLC, New York | |||
16 | ||||
17 | ||||
NEGOTIATED_OFFERING_DATA |