[Tex/LaTex] Sideways (rotated 90 degrees) label for table

rotatingtables

How can I create the following table in LaTeX? I created the table below using PowerPoint.

enter image description here

Here is my best attempt at using LaTeX to create the table:

\begin{tabular}{l|l|l|}
  \cline{2-3} 
  & \multicolumn{2}{|c|}{Returning Week} \\ \cline{2-3}
    & 1 & 2 \\ \hline
  \multicolumn{1}{|l|}{1} & 0.3 & 0.2 \\ \hline
  \multicolumn{1}{|l|}{2} & 0.1 & 0.1 \\ \hline
\end{tabular}

and the output

enter image description here

Similar tex.stackexchange posts:

Best Answer

\documentclass{article}
\usepackage{rotating}
\begin{document}
\raisebox{-.2in}{\rotatebox{90}{Arriving Week}}
\renewcommand\arraystretch{1.2}
\begin{tabular}[b]{p{0.8in}|p{0.8in}|p{0.8in}|}
  \cline{2-3} 
  & \multicolumn{2}{|c|}{Returning Week} \\ \cline{2-3}
    & 1 & 2 \\ \hline
  \multicolumn{1}{|l|}{1} & 0.3 & 0.2 \\ \hline
  \multicolumn{1}{|l|}{2} & 0.1 & 0.1 \\ \hline
\end{tabular}
\end{document}

enter image description here