https://strugglingtoexcel.com/2014/02/21/permutations-lists-excel/
Mix And Match - Get all possible permutations of an unlimited number of lists in Excel