I am creating a table like this :
\begin{table}[htbp]
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
aaaaaaaaaaaaaaaaaaa & bbbbbbbbbbbbbbbbb & cccccccccccccccc & ddddddddddddd & eeeeeeeeeeeee & & & & \\
\hline
erd & fds & 0 & 1470& MIN & 25th & 50th & 75th & MAX \\
\hline
\end{tabular}
\end{table}
How can I merge the last few blank cells with 'eee', and if the contents are long, the right part of the table will disappear, how can I adjust it? Many thanks.
tabularx
environment, to control the width of the table (this requires using at least oneX
column). Merging would be done through a\multicolumn{5}{c}{eee}
.makecell
, which allows for line breaks in standard cells. I would write, for the first cell, something like\makecell{Number of \\ distinct values}
. Other than that, you should post a short code, more representative of your real code.