I have a column of Results (A, B, C, D or E). In that column are missing values and Not Applicables. I want to insert a new column (done) and in that column if there is a grade between A-E in the Result column, I want to insert that grade in the new column, but if its not A-E, I want to impute a grade randomly in the new column. I want to maintain the integrity of the original Result column. I can impute I think but getting the IF statement bit beforehand is the challenge. I am brand new to this (and an accountant so really have no clue) any help would be much appreciated :)