Sample GAS code to break apart a combined range of cells in a Google Spreadsheet. Finds the corresponding overlapping merged range of cells, if exists, to avoid runtime errors when the merged range is not exactly coincident with the provided one.
Demo Spreadsheet here.