Hi, new to writing Macros here so I was wondering if someone might be able to give me some tips on the following.
I am trying to get some LMS data where currently a single question takes up 4 rows and the correct answer is always in the first row for each question designated by a 1 in the CORRECT column transposed into a format where each question and its respective possible answers are in the same row and the position of the correct answer is randomized instead of always being in first or (A ) position of a multiple choice answer. At the moment the data looks like the following:
CARDID QUESTION TEXT ANSWER CORRECT
7952 Question 1 Text liquidity risk 1
7952 Question 1 Text credit risk 0
7952 Question 1 Text interest rate risk 0
7952 Question 1 Text reinvestment risk 0
7903 Question 2 Text convertible debentures 1
7903 Question 2 Text bankers acceptances 0
7903 Question 2 Text commercial paper 0
7903 Question 2 Text negotiable CD's 0
I need it structured like the following where the answer is designated as Correct by either having a TRUE or FALSE next to it in a single row for each questions
CARDID QUESTION TEXT Answer_1 Answer_1_Correct Answer_2 Answer_2_Correct Answer_3 Answer_3_Correct Answer_4 Answer_4_Correct
7952 Question 1 Text liquidity risk TRUE reinvestment risk FALSE interest rate risk FALSE credit risk FALSE
7903 Question 2 Text commercial paper FALSE negotiable CD's FALSE convertible debentures TRUE bankers acceptances FALSE
Any help or ideas would be greatly appreciated.
Thanks! Bob
I am trying to get some LMS data where currently a single question takes up 4 rows and the correct answer is always in the first row for each question designated by a 1 in the CORRECT column transposed into a format where each question and its respective possible answers are in the same row and the position of the correct answer is randomized instead of always being in first or (A ) position of a multiple choice answer. At the moment the data looks like the following:
CARDID QUESTION TEXT ANSWER CORRECT
7952 Question 1 Text liquidity risk 1
7952 Question 1 Text credit risk 0
7952 Question 1 Text interest rate risk 0
7952 Question 1 Text reinvestment risk 0
7903 Question 2 Text convertible debentures 1
7903 Question 2 Text bankers acceptances 0
7903 Question 2 Text commercial paper 0
7903 Question 2 Text negotiable CD's 0
I need it structured like the following where the answer is designated as Correct by either having a TRUE or FALSE next to it in a single row for each questions
CARDID QUESTION TEXT Answer_1 Answer_1_Correct Answer_2 Answer_2_Correct Answer_3 Answer_3_Correct Answer_4 Answer_4_Correct
7952 Question 1 Text liquidity risk TRUE reinvestment risk FALSE interest rate risk FALSE credit risk FALSE
7903 Question 2 Text commercial paper FALSE negotiable CD's FALSE convertible debentures TRUE bankers acceptances FALSE
Any help or ideas would be greatly appreciated.
Thanks! Bob