In Microsoft Office Excel 365, there is a function name "UNIQUE". Now the best feature of this function is it extract the unique set of data from a List.
It works perfectly, when the data is in rows, However if the data is in columns, in that case, it can not extract the Unique Data.
To tackle this situation, we can use a VBA UDF (user defined function) which can extract unique data from multiple columns and transpose the data vertically.
So here we will create a Function called "smart_uniques"
So, we have to apply below formula:
=smart_uniques(A1:C1)
Here A1 to C1 is my data range and we can notice that the unique data is returned vertically in Cell "A3"
This function can work on multiple rows and columns.