I'm trying to make this table and as you see it, the first row is rotated
So far I've done this
\begin{tabular}{|*{41}{c|}} % repeats {c|} 18 times
\hline
\multicolumn{5}{|c}{Placeholders} & \multicolumn{2}{|c|}{Grouping} &
\multicolumn{3}{|c|}{Stacking} &
\multicolumn{2}{|c|}{Affixed} &
\multicolumn{3}{|c|}{Formation} & \multicolumn{3}{|c|}{Foundation} &
\multicolumn{3}{|c|}{Progression} &
\multicolumn{3}{|c|}{Transition} &
\multicolumn{3}{|c|}{Aggregation} &
\multicolumn{3}{|c|}{Execution} &
\multicolumn{5}{|c|}{Fixation} &
\multicolumn{3}{|c|}{Modality} &
\multicolumn{3}{|c|}{Meta Symbol} \\ \hline
P & O & A & S & F & P & O & P & O & A & P & O & 1 & 2 & 3 & (1, 1) & (1, 2) & (2, 1) & P & O & A & P & O & A & P & O & A & P & O & A & P & O & A & Group P & Group A & P & O & A & P & O & A \\ \hline
\end{tabular}
I appreciate the help
Edit:
I managed to do this so far
\newcolumntype{R}[2]{%
>{\adjustbox{angle=#1,lap=\width-(#2)}\bgroup}%
c%
<{\egroup}%
}
\newcommand*\rottttt{\multicolumn{5}{R{90}{1em}}}%
\newcommand*\rottt{\multicolumn{3}{R{90}{1em}}}%
\newcommand*\rott{\multicolumn{2}{R{90}{1em}}}%
\begin{tabular}{|*{41}{c|}}
\hline
\rottttt{Placeholders} &
\rott{Grouping} &
\rottt{Stacking} &
\rott{Affixed} &
\rottt{Formation} &
\rottt{Foundation} &
\rottt{Progression} &
\rottt{Transition} &
\rottt{Aggregation} &
\rottt{Execution} &
\rottttt{Fixation} &
\rottt{Modality} &
\rottt{Meta Symbol} \ \hline
P & O & A & S & F &
P & O &
P & O & A &
P & O &
1 & 2 & 3 &
(1, 1) & (1, 2) & (2, 1) &
P & O & A &
P & O & A &
P & O & A &
P & O & A &
P & O & A & Group P & Group A &
P & O & A &
P & O & A \ \hline
\end{tabular}
But the lines are gone and It's not fitting in the page







