Project · Branch Excel report
192 branch Excel files merged into one weekly report with one command
The problem
Every branch sends its own Excel file in its own format, so someone spends hours each week copying, fixing and pasting before anyone sees a total.
The solution
One script reads every branch file, cleans names, dates and amounts to one standard, sets aside rows that break the rules with the reason, and rebuilds the weekly report in Excel and Power BI with one command.
How it works
- Collect: Every branch's monthly Excel file dropped in one folder
- Clean: Names, dates, products and amounts fixed to one standard, duplicates removed
- Check: Rows that break the rules set aside with the reason, never silently dropped
- Merge: One clean, trusted table across all branches and months
- Report: A weekly Excel and Power BI report rebuilt with one command
A closer look


The code
order_date: [Order Date, Date]
ship_mode: [Ship Mode, Shipping]
segment: [Segment, Customer Type]
city: [City]
state: [State]
product_id: [Product ID, SKU]
category: [Category]
sub_category: [Sub-Category, Subcategory]
product_name: [Product Name, Item]
quantity: [Quantity, Qty]
sales: [Sales, Amount]
profit: [Profit]The impact
- The weekly copy, paste and VLOOKUP routine replaced by one command.
- Every branch in the same format, so totals match.
- Bad rows listed with the reason, so they get fixed at the source.
The result
10,089 rows across 192 branch files: all 253 errors caught and set aside with their row and reason.