Origin supported dynamic merge of adjacent cells if the value/text are the same. But it’s kind of hidden.
User would need to go to Worksheet Properties or Format Cells dialog to turn it on. Also when clicking on a merged cell and edit would change the clicked cell only so not easy to edit all cells.
The following improvements are made:
Mini toolbar to turn on dynamic merge on/off on column label row header or multi-selection.

Single click or double click on dynamically merged cells and type will edit value/text for all cells. E.g. if change it to cos(A), it will dynamically merge all 3 F(x) cells.

2nd Single click will edit a single cell, e.g. only F(x) cell of column C is selected. Type will edit it only

Also supported in data area. E.g. select A1 to B4 and turn dynamic merge on. Since A2, A3, B2, B3 are all 5, they will be merged dynamically.
