04-28-2020 07:16 AM
04-28-2020 07:16 AM
I have report data in notepad .txt format that is grouped by employee. I need to convert to columns in an Excel spreadsheet. There are 12477 lines...is there a way to do it without having to perform text to columns, transpose, copy/paste, across the sheet for all 1000+ employees?
04-28-2020 07:31 AM
Much will depend on the level of consistency of how the data are organized.
Your description doesn't give enough details, however. Is it possible to post a few representative sets of the textual data, after first changing any personal data so that no real person can be identified.
04-28-2020 02:00 PM
My, oh, my, what a mess. I'm retired now, but had a long career in HR, and for some of that time was director of the HR and Payroll database for a major corporation. So I recognize these fields.
Just out of curiosity, is it possible to go back to the source of that text file--which pretty obviously was a database of some kind--and get it delivered as a CSV file (as it should have been in the first place)?
I'm sure it would be possible to write some kind of routine that could go through this text file and parse it into its many fields, but there's not a consistent set of columns (it's finite, but varies from person to person).......so it would be a stripping routine that would be beyond my abilities.
04-29-2020 07:13 AM
I'm not @Khizar_Hayyat but think he'll come back to you with a renewed request for an actual text file. What you sent is in a Word document, but actually just contains an image of your text file embedded in a word doc; it is neither editable nor amenable to parsing into separate characters. So at best there'd still be a need to use OCR to get it to text. Make it easier for @Khizar_Hayyat by uploading the actual text--and yes, turn the names into fictitious ones first.
For myself, back to the question of the source being available in CSV instead of text, it's hard to imagine a service provider not being willing to do that service. (Although I will acknowledge having been frustrated when Apple first released their charge card, in conjunction with Goldman, that they provided monthly statements only in PDF form. It took months before they rectified what should never have happened in the first place.)
04-29-2020 08:14 AM
IMHO, two main points to clarify
- logic of input file. Is it with fixed width columns or not. If so, how many characters in each column. If not, what the logic. What are flexible -why employee ID/name sometimes in first position, sometimes not, what are the options.
- logic of output. Are employees ID and name in first two columns and all few dozens of other ID:s in other columns or not. Shall they be separated on 4 groups (Pay, Deduct, etc) or not. If yes, when how.
04-29-2020 01:29 PM
04-29-2020 01:30 PM
04-29-2020 02:20 PM
04-30-2020 06:08 AMSolution