Hi everyone,
Im seeking advice to write the code to handle this kind of scenario.
The objective is to extract the total amount. However, due to the report layout, the 'total' column is not consistently each block (separated by salesperson). Please refer to the screenshot named "sample" (blue highlighted cells contain the needed information) and the desired outcome.
FYI, there are more than 100 salespeople in the actual report, so any ideas on how to scan through every column and extract the amount would be greatly appreciated.
Thanks
Solved! Go to Solution.
@WilliamCTX
I would put a RecordID and then aFfilter and look for Period, connect another RecordID name it Category and then union the data together and sort it out based on the RecordID. With Multi Row Formula tool copy the Category to all the bellow cells.
Now you put it into a Batch Macro based on Category, so each time one sales person is been pulled into the macro. With Dynamic Rename making the first row into the header, and then you can add a selected tool that removes the unneeded fields.
1st - Please attach an example input dataset so it's easier to help build an example workflow.
2nd - You can use the following workflow to get the desired results.
@WilliamCTX one way of doing this
@chukleswk Oops, my bad. I missed including the source data. Thanks for the insight!