I’m trying to change numeric data, 1, 2, -1, and blank spaces to yes, no, unsure, and ” “. I was able to do this for 1, 2, blank —> “male”, “female”, ” ” when only three values were involved by using this function
if (variableX=1, “male,
if (variableX=2, “female”, ” “))
Not really knowing how to program functions, I tried to solve my new problem this way
if (variableY=1, “yes”,
if(variableY=2, “no”,
if(variableY=-1, “unsure”, ” “)))
I got an out of range error that I think was telling me I can’t have that many conditional statements. Does anyone know how to write a function to convert anywhere from 3 to 6 numeric values into strings? Middle school students will be working with the database, and we thought all the numbers would become a bit overwhelming, and limit their engagement with the data.
Thanks!
T