This question already has an answer here:

I want to make a table like the following.

Current table

In particularly what does not satisfy me is that I wanted to incorporate \multirow so that `cell1,cell2,cell9,cell10' can be centered in between the merged rows....Is there anyway to fix it?

Below is my current Latex code.

\begin{tabular}{ |c|c|c|c|c| } 
      & $\Omega\in\mathscr{P}_k, f_0 \in \mathcal{P}_{m_{f_0}}$ & $\Omega\in\mathscr{P}_k,f_0\in \mathcal{C}(\Gamma)$ & $\Omega \in \mathscr{C}, f_0 \in \mathcal{P}_{m_{f_0}}$ & $\Omega\in \mathscr{C}, f_0 \in \mathcal{C}(\Gamma)$\\
$d=2$ & cell 1 & cell2 & cell3 & cell4\\ 
$d=3$ & cell 1 & cell2 & cell5 & cell6\\ 
$d=4$ & cell7 & cell8 & cell9 & cell10\\ 
$d\geq 5$ & cell11 & cell12 & cell9 & cell10\\ 

marked as duplicate by Werner tables Jul 16 '15 at 20:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.