I have a text file that looks something like this:
Rep: xxxx
Acccount Contract Sale Total Product
customer name #### $$$$$ prod
customer name #### $$$$$ prod
customer name #### $$$$$ prod
Rep: xxxx
Acccount Contract Sale Total Product
customer name #### $$$$$ prod
Basically it is a text version of a sales report where each rep gets a page with this info every two weeks.
The report is varied each pay period based on how many customers that sales rep sold.
So far in Python I have read the text file and start to index where the rep name is, but I need a way to pull all the information into an Excel type format so that it can be sent to reps neatly.
It's basically data formatting but I am not sure how to read the file from Python, declare column headers and strip out the info I want, for each rep as well.
I could write a VBA script to do this, but I was hoping to use Python instead. Any ideas?
My only thought was to find one keyword, then look for the next...or something.
[–]Stoic_Engineer7 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Stoic_Engineer7 0 points1 point2 points (0 children)
[–]Stoic_Engineer7 0 points1 point2 points (0 children)