STATA Problem with string variables

#1
Hi,

I am using stata 10 and I have a variable that contains names and when i try to paste it in the data editor from my excel file it is described as a string variable but stata doesn't recognize it so that I can use it. Is there a command that will make stata recognize the variable?
 
#2
I had the same problem! you have to change them to numerical values for stata to understand. Use this command -

encode varilist, generate varilist2

so what you are basically doing here is generating a new column with numerical values attached to them.

Hope this helps!