Hi khalid79m,
Presumably you could use something based on:
Sub Test()
Dim MyFormula As String
MyFormula = "=IF((CHECK=1)*("
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_1,ROW(A1)))+COUNTBLANK(INDEX(Question_2,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_3,ROW(A1)))+COUNTBLANK(INDEX(Question_5,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_6,ROW(A1))))+COUNTBLANK(INDEX(Question_4,ROW(A1)))+"
MyFormula = MyFormula & "(CHECK=2)*COUNTBLANK(INDEX(Question_7,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_8,ROW(A1)))+COUNTBLANK(INDEX(Question_9,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_10,ROW(A1)))+COUNTBLANK(INDEX(Question_11,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_12,ROW(A1)))+COUNTBLANK(INDEX(Question_13,ROW(A1)))+"
MyFormula = MyFormula & "COUNTBLANK(INDEX(Question_14,ROW(A1)))+COUNTBLANK(INDEX(Question_15,ROW(A1)))"
MyFormula = MyFormula & ",""O"",""P"")"
ActiveCell.Formula = MyFormula
End Sub
Your specifications for the CHECK tests are confusing (for '1', "count question 1,2,3,5,6,7" and for '2' "question 1 to 3 and 5 to 6") - except for Question_7 they amount to the same thing - and it is not at all clear where Question_4 and Question_8 thru Question_15 fit in. Note the re-positioning of the Question_4 test so that it is excluded from both tests (as are Question_8 thru Question_15).