Bundled images link: https://i.stack.imgur.com/Ew3tL.jpg
I want to achieve this formatting of cells(incuding automatic linebreaks working or alternatively a good way to manually do it):
What I want to end up with(made in MS Word) :
However halfway in I saw that linebreaks apparently do not work within multirow cells:
What happens with the linebreaks? https://i.stack.imgur.com/znu9V.jpg
Then I tried splitting the text up to the 2 different cells but couldn't find a way to move down the one cell down so the text looks as if it was inside one cell
What happens with split text: https://i.stack.imgur.com/umTmX.jpg
Can you please provide me a working example for this table that includes automatic linebreaks? The last column really is relatively long.
I hacked something together but it isn't quite what I wanted: https://i.stack.imgur.com/xU0la.jpg
Corrections are written in red. The very right column works great but the others don't quite do what I want them to do. Here is the code:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{multirow, tabularx, ragged2e}
\newcolumntype{C}{>{\Centering\arraybackslash}X}
\begin{document}
\begin{table}[!ht]
\begin{tabularx}{\textwidth}{|c|C|C|C|C}
\hline
\multirow{2}{*}{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}
& \multicolumn{2}{C|}{Text} & Very long text \\ \hline
\multirow{1}{*}[-3.9em]{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}
Text& \multicolumn{2}{C|}{Text} & Very long text \\ \hline
& \multirow{2}{*}{text} & text & text \\ \cline{3-4}
& & text & very long text \\ \cline{2-4}
Text & \multirow{1}{*}{Text} & Text & text \\ \cline{3-4}
& \multirow{1}{*}{Text} & text & Very long text \\ \hline
\end{tabularx}
\end{table}
\end{document}
THX in advance!



