I have a flow with a Directory input to read in all files from a network folder, I use a batch macro to find all sheet names across all of the files & then another batch macro to bring the data into the flow from each of those files, sheets.
Ideally I'd like to create a unioned view of the data BUT I'm struggling with the variances in format. All submissions should be the same format but various customers don't / won't comply. I'm happy to reject a number of submissions but some are simple fixes such as, the data doesn't start on row 1 so I need to look for row headings OR row headings are slightly different.
These are examples of some of the variances I'd like to fix. The batch macro which picks up all data from all sheets is failing when I bring it into my flow. The actual headers should be Distributor Account Number, Distributor Name, Date of Purchase, Customer Name, Material Reference Number & Quantity Sold but if this appears on rows 1, or even on rows 6,7 etc I want to start my data collation from there and if the headers say something like Dist Acc No, I want to accept that.