[Tex/LaTex] split a table cell in two lines and columns

multicolumnmultirowtables

what is the best way to split a table cell like this:

| Header1    | Header2| Header3  |
----------------------------------
| text11      | text12 | text13   |
----------------------------------
| text21      | text22 | text23   |
----------------------------------
|       |t311 |text312 | text313  | 
| text31|     |        |          |  
|       |t312 |text322 | text323 | 

thanks

Best Answer

Is this what you want?

enter image description here

\documentclass{article}

\usepackage{multirow}

\begin{document}
\begin{tabular}{| l | l | c | c |}
  \hline 
  \multicolumn{2}{|l|}{Header1}    & Header2 & Header3  \\
  \hline
  \multicolumn{2}{|l|}{text11}      & text12 & text13   \\
  \hline
  \multicolumn{2}{|l|}{text21}     & text22 & text23   \\
  \hline
  \multirow{2}*{text31}      & t311 &text312 & text313  \\
       & t312 & text322 & text323 \\
  \hline 
\end{tabular}
\end{document}
Related Question