# How can I create this table format? [duplicate]

This question already has an answer here:

I want to create this table format in LaTeX.

Can anybody help me to create this table?

## marked as duplicate by Werner tables StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 10 '17 at 7:53

You can apply this code

\documentclass{article}
\usepackage{multirow}
\usepackage{array}

\begin{document}
\begin{table}[!htbp]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{} & \multirow{2}{*}{} & \multirow{2}{*}{} & \multicolumn{3}{l|}{} & \multirow{2}{*}{} \\ \cline{4-6}
&                   &                   &       &       &       &                   \\ \hline
&                   &                   &       &       &       &                   \\ \hline
&                   &                   &       &       &       &                   \\ \hline
\end{tabular}
\end{table}
\end{document}


Here is the table with some entries

\begin{table}[!htbp]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{\bf Z} & \multirow{2}{*}{\bf X} & \multirow{2}{*}{\bf V} &
\multicolumn{3}{c|}{\bf A} & \multirow{2}{*}{\bf Y} \\ \cline{4-6}
&                        &                        &    B     &    C   &    D   &                        \\ \hline
&                        &                        &          &        &        &                        \\ \hline
&                        &                        &          &        &        &                        \\ \hline
\end{tabular}
\end{table}

• Thank you so much @Cragfelt, How can I write field names in this table.. – Saqib Qamar Dec 10 '17 at 5:22
• @SaqibQamar Do you mean the entries in the cells of the table? – Cragfelt Dec 10 '17 at 5:27
• I have edited attached image with fields name, how can I write it.. – Saqib Qamar Dec 10 '17 at 5:39
• @SaqibQamar Glad to help, if this answer solved your problem please mark it as accepted by clicking the check mark next to the answer. see: How does accepting an answer work? for more information. – Cragfelt Dec 10 '17 at 5:57