# How to draw table like this in latex [closed]

Hello, I am trying to draw a table in the texstudio. Since, I am new can anybody help , how to do that ?

## closed as unclear what you're asking by Werner, Sebastiano, Kurt, siracusa, Stefan PinnowFeb 12 at 6:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome! What have you tried so far? Make your question clearer: Should the part DE - AE in a new table nested in the bigger table or not? – JouleV Feb 11 at 10:43
• You could start by taking a look at the booktabs package. – Bibi Feb 11 at 11:13
• Two usefull tips for drawing tabulars: in TeXstudio go to Wizards > Quick Tabular or go to tablesgenerator.com – NBur Feb 11 at 11:24
• @Joule everything should be like as i described in the diagram. Three coloums and 2 rows. in the last coloum, it should split the coloum into two parts – BBV Feb 11 at 11:47
• Install Excel to Latex addin. Format the table in excel and generate codes for latex through this add in. The addin is available here – Ahmed Arif Feb 11 at 12:44

Just make nested tables in the third column. It can be simplified a bit with some macro:

\documentclass[11pt]{article}
\def\xxx#1#2{\begin{tabular}{|p{4em}|p{4em}|}\hline#1&#2\\\hline\end{tabular}}
\begin{document}
\begin{tabular}{|l|l|l|l|}
foo & bah & Variability Process \\
11 & 12 & \xxx{13}{14}\\\hline
21 & 22 & \xxx{23}{24}\\\hline
31 & 32 & \xxx{33}{34}\\\hline
\end{tabular}
\end{document}


Said that, consider avoid vertical rules and use the booktabs rules:

\documentclass[11pt]{article}
\usepackage{booktabs}
\def\xxx#1#2{\begin{tabular}{|p{4em}|p{4em}|}\hline#1&#2\\\hline\end{tabular}}
\begin{document}
\begin{tabular}{llll}\toprule
foo & bah & Variability Process \\\midrule
11 & 12 & \xxx{13}{14}\\
21 & 22 & \xxx{23}{24}\\
31 & 32 & \xxx{33}{34}\\\bottomrule
\end{tabular}
\end{document}


or better:

\documentclass[11pt]{article}
\usepackage[table]{xcolor}
\usepackage{booktabs}
\def\xxx#1#2{{\tabcolsep1pt\begin{tabular}{p{4em}cp{4em}}\cellcolor{gray!20}#1&&\cellcolor{gray!20}#2\\\end{tabular}}}
\begin{document}
\extrarowheight2pt
\begin{tabular}{llll}\toprule
foo & bah & Variability Process \\\midrule
11 & 12 & \xxx{13}{14}\\
21 & 22 & \xxx{23}{24}\\
31 & 32 & \xxx{33}{34}\\\bottomrule
\end{tabular}
\end{document}