Hi,
1. Your equation "Qagecat" is not correct.
You do an assignment. This is used if you want to assign a value to a different question.
This is sufficient
{if(Qage < 18, 0, if(Qage <= 34, 1, if(Qage <= 54, 2, if(Qage <= 79, 3, 0))))}
2. Your agecat coding.
There are 4 categories (0,1,2,3), not three as in my example.
Now there are 8 ways to combine sex x age and 24 to combine all three
So you have to adapt the formula.
{(Qlanguage-1)*
8+(Qsex-1)*
4+Qagecat}
You see the factors (red, bold) always represent the number of following options.
This way you get codes from 0 to 23.
Best regards
Joffm