I have the following latex table
As you can see, I am getting some awkward big spaces in some of the cells. I am not really sure what exactly I want it to look like, but I would like to hear if you have any suggestions to how I could make it more nice to look at.
Here is code to reproduce the table
\usepackage{makecell}
\usepackage{xcolor}
\begin{document}
\begin{center}
\begin{tabular}{|p{2cm}|p{2cm}|p{2.4cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
% 0----------------------------------------------------------
\hline
\bf{Risk} &
%------------------------------------------------------------
\bf{Probability} &
%------------------------------------------------------------
\bf{Consequence} &
%------------------------------------------------------------
\bf{Risk Value} &
%------------------------------------------------------------
\bf{Preventive Measures} &
%------------------------------------------------------------
\bf{Corrective Actions} &
%------------------------------------------------------------
\bf{Responsible} \\ \hline
% Row 1------------------------------------------------------
Data not being validated correctly &
%------------------------------------------------------------
\makecell{
\\ 3 \\ \textcolor{red}{3} \\ \textcolor{green}{2}
} &
%------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%------------------------------------------------------------
\makecell{
\\ 15 \\ \textcolor{red}{10} \\ \textcolor{green}{10}
} &
%------------------------------------------------------------
Get validation rules clearly specified by the product owner. Testing validation logic &
%------------------------------------------------------------
Redesign validation logic &
%------------------------------------------------------------
Entire group \\ \hline
% Row 2-------------------------------------------------------
Cannot connect to Mainframe API &
%-------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{2}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
\makecell{
\\ 10 \\ \textcolor{red}{10} \\ \textcolor{green}{10}
} &
%---------------------------------------------------------------
Ensure connection is possible &
%---------------------------------------------------------------
Notify responsible team that mainframe system is not working &
%---------------------------------------------------------------
Mainframe Team \\ \hline
% Row 3---------------------------------------------------------
Program crash while user is using it &
%-------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{2}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
\makecell{
\\ 10 \\ \textcolor{red}{10} \\ \textcolor{green}{10}
} &
%---------------------------------------------------------------
Ensure to have exception handling &
%---------------------------------------------------------------
Making small backups of users progress &
%---------------------------------------------------------------
System \\ \hline
% Row 4---------------------------------------------------------
User not able to upload file to GFS Upload &
%-------------------------------------------------------------
\makecell{
\\ 1 \\ \textcolor{red}{1} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
Ensure GFS Upload can support every version of excel file and csv file. &
%---------------------------------------------------------------
Tell user which file types can be used to upload.
Add contact information if the user is still not able to upload. &
%---------------------------------------------------------------
User \\ \hline
% Row 5---------------------------------------------------------
Not able to CRUD database &
%-------------------------------------------------------------
\makecell{
\\ 3 \\ \textcolor{red}{2} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 3 \\ \textcolor{red}{3} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
\makecell{
\\ 9 \\ \textcolor{red}{6} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
Ensure to have unit testing &
%---------------------------------------------------------------
Redesign repository logic &
%---------------------------------------------------------------
Entire Group \\
\hline
\end{tabular}
\end{center}
\begin{center}
\begin{tabular}{|p{2.3cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|} \hline
% Row 6---------------------------------------------------------
External libraries will be outdated &
%-------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 4 \\ \textcolor{red}{3} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
\makecell{
\\ 8 \\ \textcolor{red}{6} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
Ensure to have libraries locally on project &
%---------------------------------------------------------------
Notify the developer responsible for the program and use logging to notify the problem for error handler &
%---------------------------------------------------------------
GFS Upload responsible \\
\hline
% Row 7---------------------------------------------------------
GFS Upload wrong data to Mainframe &
%-------------------------------------------------------------
\makecell{
\\ 3 \\ \textcolor{red}{2} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
\makecell{
\\ 15 \\ \textcolor{red}{10} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
Exception Handling when sending to host and log properly. &
%---------------------------------------------------------------
Notify the user that errors occurred and were not able to send to the host. &
%---------------------------------------------------------------
System \\
\hline
% Row 8---------------------------------------------------------
Authentication not working &
%-------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 3 \\ \textcolor{red}{3} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
\makecell{
\\ 6 \\ \textcolor{red}{6} \\ \textcolor{green}{3}
} &
%---------------------------------------------------------------
Ensure there are no errors in code&
%---------------------------------------------------------------
Redesign authentication logic &
%---------------------------------------------------------------
System \\
\hline
% Row 9---------------------------------------------------------
Backend crashing &
%-------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{2}
} &
%---------------------------------------------------------------
\makecell{
\\ 2 \\ \textcolor{red}{2} \\ \textcolor{green}{2}
} &
%---------------------------------------------------------------
\makecell{
\\ 4 \\ \textcolor{red}{4} \\ \textcolor{green}{4}
} &
%---------------------------------------------------------------
Logging and exception handling &
%---------------------------------------------------------------
Ensure data is backed up on backup database &
%---------------------------------------------------------------
System \\
\hline
% Row 10--------------------------------------------------------
Not able to deliver software on time &
%-------------------------------------------------------------
\makecell{
\\ 4 \\ \textcolor{red}{3} \\ \textcolor{green}{1}
} &
%---------------------------------------------------------------
\makecell{
\\ 5 \\ \textcolor{red}{5} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
\makecell{
\\ 20 \\ \textcolor{red}{15} \\ \textcolor{green}{5}
} &
%---------------------------------------------------------------
Use Release Planning and check weekly burndown chart &
%---------------------------------------------------------------
Ensure to make enough story points every sprint &
%---------------------------------------------------------------
Entire Group \\
\hline
\end{tabular}
\end{center}
\end{document}



\documentclass[a4paper,twoside,11pt]{report}– Boris Grunwald May 26 '20 at 10:04\makecellhave a[t]alignment parameter? If so, that will fix it. But why\makecellfor those stacked entries? – Donald Arseneau May 27 '20 at 01:41