Hi!
I have a column of strings (animal names) and I want to convert the names into numbers (cow-> 1, zebra->3). The ordering of the numbers needs to be set by me- meaning, the names can't just be set to numbers in an arbitrary order, cow must be 1 and zebra must be 3 (sample file attached). Some of the strings contain hypens, I'm not sure if that affects anything, just letting you know.
Technically, I could do a Case Statement but in the full file I have over 30 names, so i didn't feel that writing 30 cases was so efficient...
Please let me know if you have any suggestions about the best way to do this.
Thanks so much!
Bookmarks