I have the following table on Excel from A2-A10
YEAR
1999
1997
1999
1998
1998
1996
1999
=INDEX(SORT(UNIQUE($A$2:$A$10)),COLUMN((A1))) >>> (drag formula horizontally)
This is my output:
1996 1997 1998 1999 0
The problem is that it keeps returning 0 because my range contains some blank cells. How can I ignore blanks using this formula?