I have a column, the first two of them is short and must not be wrapped (I use l and r), whereas the other three has very long column name that must be wrapped (C|C|C).
\begin{table}
\begin{center}
\begin{tabulary}{\linewidth}{l|r|C|C|C}
\hline
\hline
\multicolumn{1}{c|}{CASE} &
\multicolumn{1}{c|}{COST (\$)} &
VERY LONG COST NAME (\unit{{MW.h}}) &
VERY LONG COST NAME (\unit{{MW.h}}) &
VERY LONG COST NAME (\unit{{MW.h}}) \\
\hline
Name & 999999.999999 & \multicolumn{1}{r|}{999999.999999} & \multicolumn{1}{r|}{999999.999999} & \multicolumn{1}{r}{999999.999999} \\
\hline
\hline
\end{tabulary}
\end{center}
\end{table}
It works, but the first two column did not centered vertically. How to make it centered vertically? If using tabulary is not possible, you can use other approach so long that the threee column can be wrapped.