This snippet posts an Excel to calculate the matrix with Euler angles. To discribe the rotation of a crystal frame, commonly, we use three angles: , , and . They are also known as Bunge angles. The matrix to rotate the crystal frame in reference frame is described with Euler angles as below:
In this Excel (Cf06b0.xlsx), you just need to input three Euler angles and the vector in reference frame. It will give the matrix and the inverse matrix with these three Euler angles. Also, it will give the vector in crystal frame.
This snippet is very useful for debugging the code with rotation of Euler angles.