CSV exports issue

Ugh, just fell foul of a horrible issue!

My account goes back to mid-year 2019.

I have exported 6 April-5 April entries (All) for each tax year in my Invest account and created a sheet for each tax year. All ok.

Haven’t checked my ISA account yet.

When I decided to create a sheet containing ALL entries for ALL tax years, I discovered that each export has a different number of columns contained therein. This has seriously messed up my formulas.

I’ll try to paste examples below.

Columns A-K in all years are;
Action Time ISIN Ticker Name No. of shares Price / share Currency (Price / share) Exchange rate Result (GBP) Total (GBP)

Columns L-R in 2019 are;
Withholding tax Currency (Withholding tax) Charge amount (GBP) Stamp duty (GBP) Stamp duty reserve tax (GBP) Notes ID

Columns L-S in 2020 are;
Withholding tax Currency (Withholding tax) Charge amount (GBP) Stamp duty reserve tax (GBP) Transaction fee (GBP) Finra fee (GBP) Notes ID

Columns L-S in 2021 are;
Withholding tax Currency (Withholding tax) Charge amount (GBP) Deposit fee (GBP) Stamp duty reserve tax (GBP) Notes ID Currency conversion fee (GBP)

Columns L-O in 2022 are;
Charge amount (GBP) Stamp duty reserve tax (GBP) Notes ID

HELP!!!