merge cells based on style?

I have a two-column table that has headings in the left column. I would like the headings to spread over both columns, so need to merge the cells. Is it possible to somehow merge cells based on the heading style?