With
A2:F2 containing numbers or blanks
Try this formula...
If it get messier than that, I'd recommend creating![]()
G2: =SUBSTITUTE(TRIM(A2&" "&IF(B2=A2,"",B2)&" "& IF(COUNTIF(A2:B2,C2),"",C2)&" "&IF(COUNTIF(A2:C2,D2),"",D2)&" "& IF(COUNTIF(A2:D2,E2),"",E2)&" "&IF(COUNTIF(A2:E2,F2),"",F2))," ","~")
a User Defined Function (UDF) with VBA.
I hope that helps.
Bookmarks