MWE:
\documentclass{standalone}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{tabular}{@{}l|llll@{}}
\toprule
\multicolumn{1}{c|}{\multirow{2}{*}{Test}} & \multicolumn{4}{c}{A} \ \cmidrule(l){2-5}
\multicolumn{1}{c|}{} & 1 & 2 & 3 & 4 \ \midrule
& & & & \
& & & & \ \bottomrule
\end{tabular}
\end{document}
Output:
Saw this, this. Somewhere, I have to use makecell or m, but not able to grasp. Any help in making the "Test" vertically align.



booktabspackage add some vertical white space above and below them, hence the incompatibility with vertical lines (please keep that in mind) and the gaps around the intersections,\multirow{2}will not result in the expected output. You could try with something like\multirow{2.4}or other non-integer values. – leandriis Aug 15 '20 at 16:58tableinside of thestandaloneclass. Either keep thetableand switch toarticleor a different standard class or stick withstandaloneand remove thetable. – leandriis Aug 15 '20 at 17:00\multirownext to a\cmidrule. – leandriis Aug 15 '20 at 17:06\multirow{2}{*}{Test}to\multirow{2}[3]{*}{Test}. However, did not understand what[N]does. Can you explain it? – Dr.PB Aug 15 '20 at 17:52