datatronics505
Board Regular
- Joined
- Nov 26, 2022
- Messages
- 55
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
Hi,
So I have this text document that I'd like to turn into a table via PowerQuery, plan to later turn that query into a custom function since the operation will be a regular occurence and am already stuck at step 1.
The text file looks like this:
How do I detect for a presence of an empty row in "NAME AND PLACE OF BIRTH" and potentially be able to use it as a delimiter for more new columns?
So I have this text document that I'd like to turn into a table via PowerQuery, plan to later turn that query into a custom function since the operation will be a regular occurence and am already stuck at step 1.
The text file looks like this:
When imported into PowerQuery window, the first line is correctly detected as titles for separate columns and the table is formatted as such. The problem is, all of the lines that seem to belong to column 1 ("NAME AND PLACE OF BIRTH") and are all capital letters should also be in their own separate column (TYPE OF OFFER should be its own column, NAME OF OFFER another column etc.). There is a double newline separator in the text file between the last all-caps line and the first line below that separator ("Georgie St. Augustine(tab) FL(tab)02/11/1982") but in the query there's only one row empty between all caps and small caps text.NAME AND PLACE OF BIRTH STATE DATE
TYPE OF OFFER
NAME OF OFFER
SPECIAL REMARKS
Georgie St. Augustine FL 02/11/1982
Managerial
Cash-a-lot
Big money
How do I detect for a presence of an empty row in "NAME AND PLACE OF BIRTH" and potentially be able to use it as a delimiter for more new columns?