To clean up the messy data, it needs to be loaded into the Power Query Editor.
The XLOOKUP or VLOOKUP choice is tied to scenario, as most needs are fixed lookups, letting you save time with the simpler ...