Hi,
In the simplest way, I am trying to consolidate files that I receive each month. I am just simply unioning the data to each other. I need to do this every month so therefore I intend to use the Dynamic Input tool to do this which works fine in theory. However my biggest issue is that each file does not always start from the first row. Sometimes I may have weird additional rows and therefore for each file, I want to input only from the correct line of data (wherever it may be).
I am able to do this one file at a time by using one RecordID to add row numbers for each record, and then again another RecordID tool but this time adding a filter tool afterwards to filter for the row which has my 'header' column, in this case.. it's DATE. then I can use some append and filter tools to filter out anything that sits above my DATE row and then at the end use the dynamic rename tool to push my first record as column headers.
ANYWAY, I have no clue how to do this all together. I've tried converting the step mentioned above into a standard macro but not sure how to slot this between the directory tool and dynamic input tool.
Any help would be appreciated.
Screenshot of macro attached.