# Latex table multirow problem [duplicate]

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.

How do I fix the right border?

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

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}


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}