If you look at @Jennifer's code, you will see that the left vertical line in the first header cell (Mean) does not line up with the vertical line in the next row. This is because the vertical bars (|) are not correctly placed. You need to set the | to the right of X column in in the first \multicolumn and remove the \multicolumn command from the second header cell. The first row shall read:
\multicolumn{1}{X|}{} & Mean & N & Std. Deviation & Std. Error Mean \\
Here is a complete MWE:

\documentclass{article}
\usepackage{tabularx, caption} % Load package caption for better captions
\usepackage{booktabs, ragged2e} % Use ragged2e to improve ragged text
\setlength\extrarowheight{1pt} % Both line necessary for decent spacing
\renewcommand{\arraystretch}{1.2}
\begin{document}
\begin{table}[!ht]
\caption{Testing123 Testin123Testing123 Testin123% % Caption above table
\label{tab:test123}% % Label inside caption
}
\begin{tabularx}{\textwidth}{|>{\RaggedRight\arraybackslash}X|c |c |c |c |}
\cline{2-5}
\multicolumn{1}{X|}{} % Right vertical rules in first header cell
& Mean % Remove multicolumn from second header cell
& N & Std. Deviation
& Std. Error Mean \
\hline
Testing123 Testin123 Testing123 Testin123 & 23% & 10% & 279% & 233% \
\hline
\end{tabularx}
\end{table}
However, I suggest you typeset the tabular in a different way:
- Use booktabs for better rules
- Get rid of all vertical rules (see the booktabs manual)
- Use
@{} to get rid of left and right side bearings
- Set the four columns with figures with equal width by defining a new column type
- Set figure columns right aligned
- Move the per cent sign to the header
The tabular preamble is:
\begin{tabularx}{\textwidth}{@{}M*{4}{N}@{}}
which means:
@{} = remove the side bearing to the left of column one, i.e the small space you see at the start of the first column
M = set one column of type M (which we have defined using the command \newcolumntype in the document preamble).
*{4}{N} = means create four columns of type N (which we have defined using the command \newcolumntype in the document preamble). It is the same as writing four NNNN in this MWE, but normally it is a short cut.
@{} = same as item 1 above for the last column: Remove the side bearing to the right of column five, i.e the small space you see at the end of the last column.
Hopefully, it is now more understandable.

\documentclass{article}
\usepackage{tabularx, caption} % Load package caption for decent foramtting and spacing
\usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules,
% ragged2e to improved ragged right and left text
\setlength\extrarowheight{1pt} % Both line necessary for decent spacing, unless you are using booktabs rules.
\renewcommand{\arraystretch}{1.2}
\newcolumntype{Y}{>{\RaggedRight\arraybackslash\hsize=2\hsize\linewidth=\hsize}X}
\newcolumntype{W}{>{\RaggedLeft\arraybackslash\hsize=0.75\hsize\linewidth=\hsize}X}
\begin{document}
\begin{table}[!ht]
\caption{Testing123 Testin123Testing123 Testin123%
\label{tab:test123}%
}
\begin{tabularx}{\textwidth}{@{}Y*{4}{W}@{}}
\toprule
& \small Mean (%)
& \small N (%)& \small Std. Deviation~(%)
& \small Std. Error Mean (%)\
\midrule
Testing123 Testin123 Testing123 Testin123 & 23 & 10 & 279 & 233 \
\bottomrule
\end{tabularx}
\end{table}
\end{document}
multicolumnwill create the words out of my width. – aan Aug 05 '19 at 11:03