[Tex/LaTex] Wrapping text in \multicolumn

multicolumntablestabularxtabularywrap

I would like to wrap (and center) text within \multicolumn. Tabularx and tabilary only wrap the text outside of the \multicolumn{} columns. I would also like to define the column width as defined by the non \multicolumn{} rows. Any ideas?

Example:

% Unwrapped example
\begin{tabular}{l*{7}{c}}
Team              & P &\multicolumn{2}{c}{Points Collected bssss} & L & F  & \multicolumn{2}{c}{Points Collected blablabl} \\
\hline
Manchester United & 6 & 4 & 0 & 2 & 10 & 5 & 12  \\
Celtic            & 6 & 3 & 0 & 3 &  8 & 9 &  9  \\
Benfica           & 6 & 2 & 1 & 3 &  7 & 8 &  7  \\
FC Copenhagen     & 6 & 2 & 1 & 3 &  5 & 8 &  7  \\
\end{tabular} 

Best Answer

You can use a new column type:

\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

with the help of array package.

Complete code:

\documentclass{article}

\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

\begin{document}
    % Unwrapped example
\begin{tabular}{l*{7}{c}}
Team              & P &\multicolumn{2}{C{1.5cm}}{Points Collected bssss} & L & F  & \multicolumn{2}{C{1.5cm}}{Points Collected blablabl} \\
\hline
Manchester United & 6 & 4 & 0 & 2 & 10 & 5 & 12  \\
Celtic            & 6 & 3 & 0 & 3 &  8 & 9 &  9  \\
Benfica           & 6 & 2 & 1 & 3 &  7 & 8 &  7  \\
FC Copenhagen     & 6 & 2 & 1 & 3 &  5 & 8 &  7  \\
\end{tabular} 

\end{document}

enter image description here

You may use either m{#1} or b{#1} instead of p{#1} as your likes.