2

This question already has an answer here:

I'm trying to draw a table where the 3rd column (Average diameter(mm)) spans 3 rows. However, after using multirow, I see that the border on the right is incomplete.

\begin{tabular}{| l | l | l |}
        \hline
        \textbf{Reading \#} & \textbf{Diameter (mm)} & \textbf{Average Diameter (mm)} \\
        \hline
        1 & 0.7 & \multirow{3}{*}{0.7} \\ 2 & 0.7 \\ 3 & 0.7 \\
        \hline
    \end{tabular}

However, the right border of the table is incomplete. enter image description here

How do I fix the right border?

marked as duplicate by Schweinebacke, Andrew Swann, CarLaTeX, Troy, Maarten Dhondt May 31 '17 at 8:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

I got it, I just needed to add an ampersand after each row. Modified code:

\begin{tabular}{| l | l | l |}
    \hline
    \textbf{Reading \#} & \textbf{Diameter (mm)} & \textbf{Average Diameter (mm)} \\
    \hline
    1 & 0.7 & \multirow{3}{*}{0.7} \\ 2 & 0.7 & \\ 3 & 0.7 &\\
    \hline
\end{tabular}
3

It's not really a multirow problem. It's just because you've declared three columns but use only two in the last two rows. You should always use as much columns as you've declared, even if you are using multirow to span rows:

\documentclass{article}

\usepackage{multirow}

\begin{document}
\begin{tabular}{|l|l|l|}
  \hline
  \textbf{Reading \#} & \textbf{Diameter (mm)} & \textbf{Average Diameter (mm)} \\
  \hline
  1 & 0.7 & \multirow{3}{*}{0.7} \\ 
  2 & 0.7 & \\ <-- empty cell added
  3 & 0.7 & \\ <-- empty cell added
  \hline
\end{tabular}
\end{document}

enter image description here

See also Werner's answer to: Problem with multirow and table cell borders.

Not the answer you're looking for? Browse other questions tagged or ask your own question.