I wish to generate a LaTeX table with merged cells in the 2nd column. Any examples I have seen so far have merged cells in the 1st column. The text also needs to wrap with in the cell.
(couldn't post pictures yet!) Basically , I have 3 columns, 15 rows.
column 1 sample id, column 2 time, column 3 remarks
col1 rows 1-15 unmerged (normal)
col2 rows 1-7 unmerged (normal)
col3 rows 5-7 merged, wrapped text
col3 rows 8-12 merged wrapped text
col2 rows 8-13 merged, need to wrap text
etc.
The resulting implementation using excel2latex (booktabs, multirow packages) gives the following code:
\begin{table}
\centering
\begin{tabular}{rrr}
\addlinespace
\toprule
Sample ID & Time [s] & Remarks \\
\midrule
1 & \multicolumn{1}{c}{50} & \\
2 & \multicolumn{1}{c}{100} & \\
3 & \multicolumn{1}{c}{150} & \\
4 & \multicolumn{1}{c}{200} & \\
5 & \multicolumn{1}{c}{250} & \multicolumn{1}{c}{\multirow{3}[0]{*}{Sampled from different area of the tank}} \\
6 & \multicolumn{1}{c}{250} & \multicolumn{1}{c}{} \\
7 & \multicolumn{1}{c}{250} & \multicolumn{1}{c}{} \\
a & \multicolumn{1}{c}{\multirow{6}[0]{*}{No times recorded for this section but it is known that there is a constant time gap between samples}} & \multicolumn{1}{c}{\multirow{5}[0]{*}{No discernible difference samples a-e}} \\
b & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
c & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
d & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
e & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
f & \multicolumn{1}{c}{} & viscous \\
g & Short time & odourless \\
h & Long time & strong acrid odour, high viscosity \\
\bottomrule
\end{tabular}%
\end{table}