LaTeX Commands \multicolumn and \multirow — Merge multiple table cells horizentally and vertically
Oct. 22, 2025 in Buffalo, United States • Updated Oct. 22, 2025
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{multirow}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
xxx & \multicolumn{3}{|c|}{xxx}\\ \hline
\multirow{3}{*}{xxx} & & & \\ \cline{2-4}
& & \multicolumn{2}{|c|}{\multirow{2}{*}{xxx}} \\ \cline{2-2}
& & \multicolumn{2}{|c|}{} \\ \hline
\end{tabular}
\end{table}
\end{document}
