I have this form of a spreadsheet:
ABCD abc abc abc 1 def ghi jkl 1 mno pqr stu 3 vwx yza bcd 4 mno pqr stu 5 mno pqr stu 5 vwx yza bcd 5 mno pqr stu 1
If the first 3 columns represent only the data of the type string. Column D has integers, the number of which is repeated. My question is how to output the fifth column as follows:
ABCDE abc abc abc 1 1 def ghi jkl 1 3 mno pqr stu 3 4 vwx yza bcd 4 5 mno pqr stu 5 mno pqr stu 5 vwx yza bcd 5 mno pqr stu 1
It outputs only unique numbers from column D.
I suggested running the if / else statement in a for or while loop, which checks each cell in "D" and stores any value that was not previously "visible" in the array. Then the output of the array to column E.
I was wondering if there is a more efficient way to do this. Also the above example is just a small example. Most likely, the data range is in the 400 range. (Row wise. Columns are 4 or 5 in total, including a new output column.)
Thanks in advance.
PS I searched for it here, but I have questions related to deleting duplicate rows. If you have a question that asks about it, write to me.
source share