[Tex/LaTex] Align center-align text in two columns under multicolumn

horizontal alignmentmulticolumntables

my table right now looks like this:
enter image description here

I want to center-align the text in the first two columns like how it is done with the other columns (sorry for the quick and dirty photoshop job):

enter image description here

I noticed that when I add vertical divider after the first and second column that the second column is much wider than the first column. To me that seems weird because the text in the columns is the same and also the Alignment.

My LaTex:

\documentclass{article}
\usepackage{booktabs}
\usepackage{makecell}

\begin{document}
\begin{table}
\renewcommand{\arraystretch}{1.2}
\centering
\begin{tabular}{@{}ccccccc@{}}
\toprule
 \multicolumn{2}{r}{Long Word} & \phantom{a} & \multicolumn{4}{c}{Another Word} \\\cmidrule{1-2}\cmidrule{4-7}
\makecell[c]{\\a} & \makecell[c]{\\a} & & \makecell[c]{word\\a} & \makecell[c]{word\\a} & \makecell[c]{word\\a}  & \makecell[c]{word\\ a} \\
\midrule
a & a & & a & a & a & a \\
a & a & & a & a & a & a \\
a & a & & a & a & a & a \\
\bottomrule
\end{tabular}
\end{table}
\end{document}

Why aren't the two cells under "Long Word" together as wide as the "Long Word" cell? How can I achieve this?

Thanks for help!

Best Answer

\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{makecell, array, booktabs, arydshln}
\usepackage[a4paper]{geometry}
\usepackage[english]{babel}
\begin{document}

\begin{table}
\renewcommand{\arraystretch}{1.2}
\centering
\begin{tabular}{@{}ccccccc@{}}
\toprule
 \multicolumn{2}{c}{Long Word} & {\phantom{a}} & \multicolumn{4}{c}{Another Word} \\\cmidrule{1-2}\cmidrule{4-7}
\makecell[c]{\phantom{word}\\a} & \makecell[c]{\phantom{word}\\a} & & \makecell[c]{word\\a} & \makecell[c]{word\\a} & \makecell[c]{word\\a}  & \makecell[c]{word\\ a} \\
\midrule
a & a & & a & a & a & a \\\hdashline
a & a & & a & a & a & a \\\hdashline
a & a & & a & a & a & a \\
\bottomrule
\end{tabular}
\end{table}
\end{document}

enter image description here

Related Question