Hi, I have a panel data and would like to generate a list of unique firms (e.g. gvkey), preferable exporting this list to excel or word. Is there any way to achieve this? I usually use distinct gvkey to know the number of unique firms.

Thanks!