Merged cells

using OpenDocumentSpreadsheets

ods = newods("Plan")
sh = ods["Plan"]
sh["A1"] = "Project plan"
sh["A2:C2"] = ["Task" "Start" "Days"]
sh["A3:C5"] = ["Design" "Mon" 5; "Build" "Mon" 12; "Test" "Fri" 4]
mergeCells(sh, "A1:C1")                # A1 keeps its value; B1 and C1 are covered
setAlignment(sh, "A1"; horizontal = "center")
setFont(sh, "A1"; bold = true)

A title, Project plan, in bold, centred across the merged cells A1 to C1 above a three-column plan

getMergedCells(sh)                     # [A1:C1], or nothing
isMergedCell(sh, "B1")                 # true
getMergedBaseCell(sh, "B1")            # (baseCell = A1, baseValue = "Project plan")
deleteMergedCells(sh, "A1:C1")         # or deleteMergedCells(sh) for every merge

A merge is an anchor cell and the cells it covers, as LibreOffice writes it (Format ▸ Merge and Unmerge Cells). Covered cells keep their formatting, and their values are emptied, as when LibreOffice merges cells without moving their contents. A merge may reach past the used area.