To check if one cell is merged, I iterate through sheet.merged_cells.ranges, e.g. @A. Lau offers. Unfortunately, checking the cell type, for example, showing @ 0x4a6f4672, no longer works.
Here is a function that shows you how to do this.
def testMerge(row, column): cell = sheet.cell(row, column) for mergedCell in sheet.merged_cells.ranges: if (cell.coordinate in mergedCell): return True return False
source share