=UNIQUE(DROP(TEXTSPLIT(CONCAT(6&A2:A5&9&TOROW(A2:A5&I1:Z4)),9,6),1))
I1:Z4 = "" This is for your reference only.