Apologies if this question has already been asked somewhere but I couldn't find a definitive answer regarding if it's possible without VBA.
I need a function to be able to know whether a cell is part of a merged groups of cells or not. I have tried =cell()
and none of the properties return anything that might give a clue that it is merged (the cells are all identical apart from the left-most cell in the merged group of cells obviously contains a value).
I have found a very good VBA function that quickly tests this How to get find if a cell in excel is merged? If the cell mrged how to read the value?, and it works great! But unfortunately I need this document to work in Google Sheets, and therefore cannot use VBA or macros.
Does anyone know if it is possible to test if a cell is merged in a non-VBA way. Or if it is possible to use this function in Google Sheets somehow?
Function IsMerged(rCell As Range) As Boolean
' Returns true if referenced cell is Merged
IsMerged = rCell.MergeCells
End Function
(Original code submitted by Vinny Roe - thanks!)