[Tex/LaTex] How to merge rows inside the table content

multirowtables

I tried to make a table like the one shown below but when I include multirow it gives me normal type of tables yet. I mean in the last row, the horizontal line appears while it is merged.

enter image description here

\documentclass[10pt]{article}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{float}
\usepackage{gensymb}
\usepackage{multirow}


\begin{document}

\begin{flushleft}
\begin{tabular*}{1\textwidth}{|p{2cm}|p{1.5cm}|p{1cm}|p{3.5cm}|}
\hline
\textbf{Type} & \textbf{Max} & \textbf{Unit} & \textbf{Notes} \\
\hline
- & 10 & V & \multirow{2}{*}{Note 1} \\ 
\hline
- &  & V & \\
\hline
- & - & V & \multirow{2}{*}{Note 2} \\
\hline
 - &  & V &  \\
\hline
- & - & V & \multirow{2}{*}{Note 3} \\
\hline
- & 12 & V &   \\
\hline
  &  &  &  &  &  &  \multirow{2}{*}{}\\
\hline
  &  &  &  &  &  & \\
\hline
2.2 & - & pF &  \\
\hline
$\pm$1 & 10 & $\mu$A & Note4 \\
\hline  
\end{tabular*}
\captionof{table}{Characteristics}
\end{flushleft}

\end{document}

Best Answer

It's just a problem of using \cline instead of \hline, and the m specifier instead of p. Once again I suggest you use the siunitx package to type μA, because the micro symbol is upright μ. I suppressed the invocation of tabularx since you have no X column, and loading textcomp which is harmful with fontspec. The flushleft environment is useless here: just use table with the H option, and it won't float.

Finally I thought the table would be better looking if the caption were also flushleft. If you want it centred flushright with respect to the table, you can use the threeparttable environment. I give an example of caption at the bottom left and right corners of the table.

    \documentclass[10pt]{article}
    %\usepackage{textcomp}
    \usepackage[utf8]{inputenc}
    \usepackage{fontspec}
    \usepackage[british]{babel}
    \usepackage{graphicx}
    \usepackage{xcolor}
    \usepackage{calc}
    \usepackage{float}
    %\usepackage{gensymb}
    \usepackage{tabularx,ragged2e,booktabs,caption}
    \usepackage{multirow}

    \usepackage{threeparttable}
    \usepackage[detect-all]{siunitx}


    \begin{document}
    Text text text text text text text text text text text text text text text text text text text text text text text text text.

    \begin{table}[H]
    \sffamily\captionsetup{justification=raggedright,singlelinecheck=false,position = below, font = sf}
    \begin{tabular}{|m{2cm}|m{1.5cm}|m{1cm}|m{3.5cm}|}
    \hline
    \textbf{Type} & \textbf{Max} & \textbf{Unit} & \textbf{Notes} \\
    \hline
    -- & 10 & V & \multirow{2}{*}{Note 1} \\
    \cline{1-3}
    -- & & V & \\
    \hline
    -- & -- & V & \multirow{2}{*}{Note 2} \\
    \cline{1-3}
     -- & & V & \\
    \hline
    -- & -- & V & \multirow{2}{*}{Note 3} \\
    \cline{1-3}
    -- & 12 & V & \\
    \hline
      & & & \multirow{2}{*}{}\\
    \cline{1-3}
      & & & \\
    \hline
    2.2 & -- & \si{\pico\farad} & \multirow{2}{*}{Note4} \\
    \cline{1-3}
    $\pm$1 & 10 & \si{\micro\ampere} & \\
    \hline
    \end{tabular}
    \caption{Characteristics}
    \end{table}
    Text text text text text text text text text text text text text text text text text text text text text text text text text.

    \begin{table}[H]
    \sffamily\captionsetup{justification=raggedleft,singlelinecheck=false,position = below, font = sf}
\begin{threeparttable}
    \begin{tabular}{|m{2cm}|m{1.5cm}|m{1cm}|m{3.5cm}|}
    \hline
    \textbf{Type} & \textbf{Max} & \textbf{Unit} & \textbf{Notes} \\
    \hline
    -- & 10 & V & \multirow{2}{*}{Note 1} \\
    \cline{1-3}
    -- & & V & \\
    \hline
    -- & -- & V & \multirow{2}{*}{Note 2} \\
    \cline{1-3}
     -- & & V & \\
    \hline
    -- & -- & V & \multirow{2}{*}{Note 3} \\
    \cline{1-3}
    -- & 12 & V & \\
    \hline
      & & & \multirow{2}{*}{}\\
    \cline{1-3}
      & & & \\
    \hline
    2.2 & -- & \si{\pico\farad} & \multirow{2}{*}{Note4} \\
    \cline{1-3}
    $\pm$1 & 10 & \si{\micro\ampere} & \\
    \hline
    \end{tabular}
\caption{Characteristics}
\end{threeparttable}
    \end{table}

    \end{document} 

enter image description here

Related Question