Excel columns: Stock Name / ISIN / Quantity / Avg Buy Price (synonyms supported).
For each conflicting stock, choose how to handle: Merge = add quantities & recalc avg price; Replace = delete old position+transactions and insert fresh.