litlmike, I would do it like this: #include <Array.au3> Global $aList[] = ["U5L4", "U5L4", "U5L4", "U6L5", "U4L12"] ; Convert list to string - use double delimiters to prevent partial matches $sList = "||" & _ArrayToString($aList, "||") & "||" ; Get unique elements of array $aUnique = _ArrayUnique($aList) ; And add a column _ArrayColInsert($aUnique, 1) ; loop through the unique elements For $i = 1 to