2
    \begin{table}
    \begin{center}
    \begin{tabular}{|p{0.5cm}|p{4cm}|p{4cm}|p{3cm}}
    \hline
    \multicolumn{4}{|c|}{Cost Breakdown} \\
    \hline
    No & Main Set & Cost Element & Unit costs  \\
    \hline
    \multirow{4}{*}{1} & \multirow{4}{*}{Raw Material} & Chemical Solution & 27.45 EUR/KG \\
     a & b \\ c & d \\ e & f \\
    \hline
    \end{tabular}
    \caption{\label{tab:table-name}Cost Breakdown of the Waste and Unit costs}
    \end{center}
    \end{table}
3
  • 1
    Welcome to TSE. Please post a Minimal Working Example, instead of a code snippet. Mar 17, 2022 at 15:01
  • if you use multirow you need to leave empty cells for it to overlap, you have not provided a usable example but it looks like you are specifying text overlaps non-empty cells. (I don't think you need multirow here at all) Mar 17, 2022 at 15:07
  • Any news? You got two answers, so you now can upvote them and even accept the one which solve your problem on the best way ...
    – Zarko
    Apr 18, 2022 at 1:59

2 Answers 2

2
  • all columns must be separated by ampersands
  • for table I would use tabularray package (shorter, simple code, to my opinion nicer table)
\documentclass[12pt]{report}
\usepackage{tabularray}

\begin{document}
    \begin{table}
    \centering
\begin{tblr}{hlines, vlines,
             colspec = {Q[c,m] X[l] X[l] Q[l,3cm]},
             row{1} = {font=\bfseries}
             }
\SetCell[c=4]{c}    Cost Breakdown      
    &           &                   &               \\
No. & Main Set  & Cost Element      & Unit costs    \\
\SetCell[r=4]{c}    1  
    & \SetCell[r=4]{l}    Raw Material
                & Chemical Solution & 27.45 EUR/KG  \\
    &           &   a               &   b           \\ 
    &           &   c               &   d           \\    
    &           &   e               &   f           \\
\end{tblr}
\caption{Cost Breakdown of the Waste and Unit costs}
\label{tab:table-name}
    \end{table}
\end{document}

enter image description here

1

I'm not entirely sure what you're trying to achieve, but I think you're missing & & in the final three rows of the table.

enter image description here

\documentclass{article}
\usepackage{multirow}
\begin{document}

\begin{table}[htbp]
\centering
\begin{tabular}{|p{0.5cm}|p{4cm}|p{4cm}|p{3cm}|}
\hline
\multicolumn{4}{|c|}{Cost Breakdown} \\
\hline
No & Main Set & Cost Element & Unit costs  \\
\hline
\multirow{4}{*}{1} & \multirow{4}{*}{Raw Material} 
   & Chemical Solution & 27.45 EUR/KG \\
 & & a & b \\ 
 & & c & d \\ 
 & & e & f \\
\hline
\end{tabular}
\caption{Cost Breakdown of the Waste and Unit costs} \label{tab:table-name}
\end{table}

\end{document} 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .