[Tex/LaTex] How to implement this table in LaTeX

multicolumnmultirowtables

I really tried hard to do this on my own, but I keep failing … Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help getting this table implemented .. So I'm sorry if I upset anyone.

My preamble has :

\documentclass[12pt,a4paper]{report}
\usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}
\linespread{1.5}

enter image description here

Is there a way I can convert this from excel to LaTeX form ? I tried an add-in before but it didn't work for me. Also online generators cannot combine cells the way I want them (unless I didn't find a better table generator ? )

Best Answer

\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|cc||c|c|c|}
\hline
\multicolumn{2}{|c||}{\multirow{2}{*}{Word}} & \multicolumn{3}{c|}{Word}\\
\cline{3-5}
& & 1 & 2 & 3\\
\hline
\multirow{5}{*}{Word} & \multicolumn{1}{|c||}{1} & & &\\
\cline{2-5}
& \multicolumn{1}{|c||}{2} & & &\\
\cline{2-5}
& \multicolumn{1}{|c||}{3} & & &\\
\cline{2-5}
& \multicolumn{1}{|c||}{4} & & &\\
\cline{2-5}
& \multicolumn{1}{|c||}{5} & & &\\
\hline
\end{tabular}
\end{document}

enter image description here

Related Question